/external/fastrpc/inc/ |
D | mutex.h | 37 #define RW_MUTEX_CTOR(mut) qurt_mutex_init(& (mut)) argument 38 #define RW_MUTEX_LOCK_READ(mut) qurt_mutex_lock(& (mut)) argument 39 #define RW_MUTEX_UNLOCK_READ(mut) qurt_mutex_unlock(& (mut)) argument 40 #define RW_MUTEX_LOCK_WRITE(mut) qurt_mutex_lock(& (mut)) argument 41 #define RW_MUTEX_UNLOCK_WRITE(mut) qurt_mutex_unlock(& (mut)) argument 42 #define RW_MUTEX_DTOR(mut) qurt_mutex_destroy(& (mut)) argument 60 #define RW_MUTEX_CTOR(mut) ABORT_FAIL(0 == pthread_rwlock_init( & (mut), 0)) argument 61 #define RW_MUTEX_LOCK_READ(mut) ABORT_FAIL(0 == pthread_rwlock_rdlock( & (mut))) argument 62 #define RW_MUTEX_UNLOCK_READ(mut) ABORT_FAIL(0 == pthread_rwlock_unlock( & (mut))) argument 63 #define RW_MUTEX_LOCK_WRITE(mut) ABORT_FAIL(0 == pthread_rwlock_wrlock( & (mut))) argument [all …]
|
D | pthread_rw_mutex.h | 47 #define RW_MUTEX_CTOR(mut) ABORT_FAIL(0 == pthread_rwlock_init( & (mut), 0)) argument 48 #define RW_MUTEX_LOCK_READ(mut) ABORT_FAIL(0 == pthread_rwlock_rdlock( & (mut))) argument 50 #define RW_MUTEX_UNLOCK_READ(mut) ABORT_FAIL(0 == pthread_rwlock_unlock( & (mut))) argument 52 #define RW_MUTEX_LOCK_WRITE(mut) ABORT_FAIL(0 == pthread_rwlock_wrlock( & (mut))) argument 54 #define RW_MUTEX_UNLOCK_WRITE(mut) ABORT_FAIL(0 == pthread_rwlock_unlock( & (mut))) argument 56 #define RW_MUTEX_DTOR(mut) ABORT_FAIL(0 == pthread_rwlock_destroy( & (mut))) argument
|
/external/protobuf/src/google/protobuf/ |
D | arenastring_unittest.cc | 71 std::string* mut = field2.Mutable(&default_value, NULL); in TEST() local 72 EXPECT_EQ(mut, field2.Mutable(&default_value, NULL)); in TEST() 73 EXPECT_EQ(mut, &field2.Get()); in TEST() 74 EXPECT_NE(&default_value, mut); in TEST() 75 EXPECT_EQ(std::string("default"), *mut); in TEST() 76 *mut = "Test long long long long value"; // ensure string allocates storage in TEST() 97 std::string* mut = field2.Mutable(&default_value, &arena); in TEST() local 98 EXPECT_EQ(mut, field2.Mutable(&default_value, &arena)); in TEST() 99 EXPECT_EQ(mut, &field2.Get()); in TEST() 100 EXPECT_NE(&default_value, mut); in TEST() [all …]
|
/external/zstd/tests/ |
D | poolTests.c | 92 ZSTD_pthread_mutex_t mut; member 101 ZSTD_pthread_mutex_lock(&test->mut); in waitLongFn() 105 ZSTD_pthread_mutex_unlock(&test->mut); in waitLongFn() 109 ZSTD_pthread_mutex_lock(&test->mut); in waitLongFn() 114 ZSTD_pthread_mutex_unlock(&test->mut); in waitLongFn() 129 ZSTD_pthread_mutex_lock(&test.mut); in testThreadReduction_internal() 131 ZSTD_pthread_cond_wait(&test.cond, &test.mut); in testThreadReduction_internal() 134 ZSTD_pthread_mutex_unlock(&test.mut); in testThreadReduction_internal() 144 ZSTD_pthread_mutex_lock(&test.mut); in testThreadReduction_internal() 146 ZSTD_pthread_cond_wait(&test.cond, &test.mut); in testThreadReduction_internal() [all …]
|
/external/rust/crates/pin-project/tests/ui/pinned_drop/ |
D | invalid.stderr | 28 51 | fn func(_: Pin<&mut ()>) {} //~ ERROR expected `impl` 40 71 | unsafe fn drop(self: Pin<&mut Self>) {} //~ ERROR implementing the method `drop` is no… 76 126 | fn drop(self: Pin<&mut Self>) {} //~ ERROR duplicate definitions with name `drop` 82 147 | fn drop(self: Pin<&mut Self>) -> Self {} //~ ERROR method `drop` must return the unit… 85 error: method `drop` must take an argument `self: Pin<&mut Self>` 88 155 | fn drop() {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>` 91 error: method `drop` must take an argument `self: Pin<&mut Self>` 94 163 | fn drop(self: Pin<&mut Self>, _: ()) {} //~ ERROR method `drop` must take an argument… 97 error: method `drop` must take an argument `self: Pin<&mut Self>` 100 171 | fn drop(&mut self) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut S… [all …]
|
/external/rust/crates/pin-project/tests/ui/cfg/ |
D | cfg_attr-type-mismatch.stderr | 4 19 | let _: Pin<&mut u8> = x.f; //~ ERROR E0308 5 | ------------ ^^^ expected struct `Pin`, found `&mut u8` 9 = note: expected struct `Pin<&mut u8>` 10 found mutable reference `&mut u8` 15 23 | let _: &mut u8 = x.f; //~ ERROR E0308 18 | | expected `&mut u8`, found struct `Pin` 19 | | help: consider mutably borrowing here: `&mut x.f` 22 = note: expected mutable reference `&mut u8` 23 found struct `Pin<&mut u8>`
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_terminates.sh.cpp | 101 ThrowingMutex mut; variable 105 while (mut.isLocked()) {} // wait until T1 releases mut inside the cv.wait call. in signal_me() 120 mut.lock(); in main() 124 case 1: cv.wait(mut); break; in main() 125 case 2: cv.wait(mut, pred_function); break; in main() 126 case 3: cv.wait_for(mut, wait); break; in main() 127 case 4: cv.wait_for(mut, wait, pred_function); break; in main() 128 case 5: cv.wait_until(mut, Clock::now() + wait); break; in main() 129 case 6: cv.wait_until(mut, Clock::now() + wait, pred_function); break; in main()
|
/external/llvm-project/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_terminates.sh.cpp | 102 ThrowingMutex mut; variable 106 while (mut.isLocked()) {} // wait until T1 releases mut inside the cv.wait call. in signal_me() 121 mut.lock(); in main() 125 case 1: cv.wait(mut); break; in main() 126 case 2: cv.wait(mut, pred_function); break; in main() 127 case 3: cv.wait_for(mut, wait); break; in main() 128 case 4: cv.wait_for(mut, wait, pred_function); break; in main() 129 case 5: cv.wait_until(mut, Clock::now() + wait); break; in main() 130 case 6: cv.wait_until(mut, Clock::now() + wait, pred_function); break; in main()
|
/external/rust/cxx/tests/ui/ |
D | pin_mut_opaque.stderr | 1 error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque> 4 5 | fn f(arg: &mut Opaque); 7 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxString> 10 8 | fn s(s: &mut CxxString); 13 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>> 16 9 | fn v(v: &mut CxxVector<u8>); 25 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>` 28 6 | fn g(&mut self); 31 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>` 34 7 | fn h(self: &mut Opaque);
|
D | mut_return.stderr | 1 error: &mut return type is not allowed unless there is a &mut argument 4 10 | fn f(t: &Thing) -> Pin<&mut CxxString>; 7 error: &mut return type is not allowed unless there is a &mut argument 10 14 | fn j(t: &Thing) -> &mut [u8];
|
/external/python/cpython3/Python/ |
D | ceval_gil.h | 54 #define MUTEX_INIT(mut) \ argument 55 if (PyMUTEX_INIT(&(mut))) { \ 56 Py_FatalError("PyMUTEX_INIT(" #mut ") failed"); }; 57 #define MUTEX_FINI(mut) \ argument 58 if (PyMUTEX_FINI(&(mut))) { \ 59 Py_FatalError("PyMUTEX_FINI(" #mut ") failed"); }; 60 #define MUTEX_LOCK(mut) \ argument 61 if (PyMUTEX_LOCK(&(mut))) { \ 62 Py_FatalError("PyMUTEX_LOCK(" #mut ") failed"); }; 63 #define MUTEX_UNLOCK(mut) \ argument [all …]
|
D | condvar.h | 56 #define PyMUTEX_INIT(mut) pthread_mutex_init((mut), NULL) argument 57 #define PyMUTEX_FINI(mut) pthread_mutex_destroy(mut) argument 58 #define PyMUTEX_LOCK(mut) pthread_mutex_lock(mut) argument 59 #define PyMUTEX_UNLOCK(mut) pthread_mutex_unlock(mut) argument 65 #define PyCOND_WAIT(cond, mut) pthread_cond_wait((cond), (mut)) argument 69 PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, long long us) in PyCOND_TIMEDWAIT() argument 73 int ret = pthread_cond_timedwait(cond, mut, &abs); in PyCOND_TIMEDWAIT()
|
/external/rust/crates/pin-project/tests/ui/pin_project/ |
D | remove-attr-from-field.stderr | 4 27 | let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308 5 | ----------------------- ^^^ expected struct `Pin`, found `&mut PhantomPinned` 9 = note: expected struct `Pin<&mut PhantomPinned>` 10 found mutable reference `&mut PhantomPinned` 15 31 | let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308 16 | ----------------------- ^^^ expected struct `Pin`, found `&mut PhantomPinned` 20 = note: expected struct `Pin<&mut PhantomPinned>` 21 found mutable reference `&mut PhantomPinned`
|
/external/rust/crates/csv-core/ |
D | README.md | 44 let mut rdr = Reader::new(); 45 let mut bytes = data.as_bytes(); 46 let mut count_fields = 0; 47 let mut count_records = 0; 50 let (result, nin, _) = rdr.read_field(bytes, &mut [0; 1024]); 78 let mut out = &mut [0; 1024]; 80 let mut nout = 0; 82 let mut wtr = Writer::new(); 86 let (_, _, n) = wtr.field(&b"foo"[..], &mut out[nout..]); 90 let (_, n) = wtr.delimiter(&mut out[nout..]); [all …]
|
/external/rust/cxx/book/src/binding/ |
D | rawptr.md | 1 {{#title *mut T, *const T — Rust ♡ C++}} 2 # *mut T, *const T 4 Generally you should use references (`&mut T`, `&T`) or [std::unique_ptr\<T\>] 59 unsafe fn parseArgs(argc: i32, argv: *mut *mut c_char); 71 let mut bytes = nul_error.into_vec(); 78 // Convert from Vec<CString> of owned strings to Vec<*mut c_char> of 85 // from *mut [Box<CStr>] to *mut [*mut CStr] to *mut *mut c_char. 87 let mut argv: Vec<*mut c_char> = Vec::with_capacity(argc + 1); 89 argv.push(arg.as_ptr() as *mut c_char);
|
/external/python/cpython2/Python/ |
D | thread_pth.h | 28 pth_mutex_t mut; member 101 status = pth_mutex_init(&lock->mut); in PyThread_allocate_lock() 131 status = pth_mutex_acquire(&thelock->mut, !waitflag, NULL); in PyThread_acquire_lock() 135 status = pth_mutex_release( &thelock->mut ); in PyThread_acquire_lock() 143 status = pth_mutex_acquire( &thelock->mut, !waitflag, NULL ); in PyThread_acquire_lock() 147 &thelock->mut, NULL); in PyThread_acquire_lock() 151 status = pth_mutex_release( &thelock->mut ); in PyThread_acquire_lock() 167 status = pth_mutex_acquire( &thelock->mut, 0, NULL ); in PyThread_release_lock() 172 status = pth_mutex_release( &thelock->mut ); in PyThread_release_lock()
|
/external/libcxx/src/ |
D | mutex.cpp | 197 _LIBCPP_SAFE_STATIC static __libcpp_mutex_t mut = _LIBCPP_MUTEX_INITIALIZER; variable 224 __libcpp_mutex_lock(&mut); in __call_once() 226 __libcpp_condvar_wait(&cv, &mut); in __call_once() 234 __libcpp_mutex_unlock(&mut); in __call_once() 236 __libcpp_mutex_lock(&mut); in __call_once() 238 __libcpp_mutex_unlock(&mut); in __call_once() 244 __libcpp_mutex_lock(&mut); in __call_once() 246 __libcpp_mutex_unlock(&mut); in __call_once() 253 __libcpp_mutex_unlock(&mut); in __call_once()
|
D | debug.cpp | 107 mut() in mut() function 177 RLock _(mut()); in __find_c_from_i() 188 WLock _(mut()); in __insert_ic() 211 WLock _(mut()); in __insert_c() 253 WLock _(mut()); in __erase_i() 286 WLock _(mut()); in __invalidate_all() 312 mut().lock(); in __find_c_and_lock() 317 mut().unlock(); in __find_c_and_lock() 326 mut().unlock(); in __find_c_and_lock() 336 mut().unlock(); in __find_c_and_lock() [all …]
|
/external/llvm-project/libcxx/src/ |
D | mutex.cpp | 199 _LIBCPP_SAFE_STATIC static __libcpp_mutex_t mut = _LIBCPP_MUTEX_INITIALIZER; variable 226 __libcpp_mutex_lock(&mut); in __call_once() 228 __libcpp_condvar_wait(&cv, &mut); in __call_once() 236 __libcpp_mutex_unlock(&mut); in __call_once() 238 __libcpp_mutex_lock(&mut); in __call_once() 241 __libcpp_mutex_unlock(&mut); in __call_once() 247 __libcpp_mutex_lock(&mut); in __call_once() 249 __libcpp_mutex_unlock(&mut); in __call_once() 256 __libcpp_mutex_unlock(&mut); in __call_once()
|
D | debug.cpp | 70 mut() in mut() function 140 RLock _(mut()); in __find_c_from_i() 151 WLock _(mut()); in __insert_ic() 174 WLock _(mut()); in __insert_c() 213 WLock _(mut()); in __erase_i() 246 WLock _(mut()); in __invalidate_all() 272 mut().lock(); in __find_c_and_lock() 277 mut().unlock(); in __find_c_and_lock() 286 mut().unlock(); in __find_c_and_lock() 296 mut().unlock(); in __find_c_and_lock() [all …]
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | notify_one.pass.cpp | 26 std::mutex mut; variable 33 std::unique_lock<std::mutex> lk(mut); in f1() 43 std::unique_lock<std::mutex> lk(mut); in f2() 57 std::unique_lock<std::mutex>lk(mut); in main() 64 std::unique_lock<std::mutex>lk(mut); in main() 83 std::unique_lock<std::mutex>lk(mut); in main()
|
D | notify_all.pass.cpp | 24 std::mutex mut; variable 32 std::unique_lock<std::mutex> lk(mut); in f1() 42 std::unique_lock<std::mutex> lk(mut); in f2() 56 std::unique_lock<std::mutex>lk(mut); in main() 63 std::unique_lock<std::mutex>lk(mut); in main()
|
/external/llvm-project/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | notify_one.pass.cpp | 49 std::mutex mut; variable 58 std::unique_lock<std::mutex> lk(mut); in f1() 70 std::unique_lock<std::mutex> lk(mut); in f2() 90 std::unique_lock<std::mutex> lk(mut); in main() 99 std::unique_lock<std::mutex> lk(mut); in main() 116 std::unique_lock<std::mutex> lk(mut); in main()
|
D | notify_all.pass.cpp | 26 std::mutex mut; variable 34 std::unique_lock<std::mutex> lk(mut); in f1() 44 std::unique_lock<std::mutex> lk(mut); in f2() 58 std::unique_lock<std::mutex>lk(mut); in main() 65 std::unique_lock<std::mutex>lk(mut); in main()
|
/external/fastrpc/src/ |
D | mod_table.c | 67 RW_MUTEX_T mut; member 75 RW_MUTEX_T mut; member 121 RW_MUTEX_CTOR(me->mut); in static_mod_table_ctor() 134 RW_MUTEX_LOCK_WRITE(me->mut); in static_mod_table_dtor_imp() 156 RW_MUTEX_UNLOCK_WRITE(me->mut); in static_mod_table_dtor_imp() 158 RW_MUTEX_DTOR(me->mut); in static_mod_table_dtor_imp() 167 RW_MUTEX_CTOR(me->mut); in open_mod_table_ctor_imp() 179 RW_MUTEX_LOCK_WRITE(me->mut); in open_mod_table_dtor_imp() 192 RW_MUTEX_UNLOCK_WRITE(me->mut); in open_mod_table_dtor_imp() 194 RW_MUTEX_DTOR(me->mut); in open_mod_table_dtor_imp() [all …]
|