/external/protobuf/src/google/protobuf/ |
D | arenastring_unittest.cc | 72 ::std::string* mut = field2.Mutable(&default_value, NULL); in TEST() 73 EXPECT_EQ(mut, field2.Mutable(&default_value, NULL)); in TEST() 74 EXPECT_EQ(mut, &field2.Get(&default_value)); in TEST() 75 EXPECT_NE(&default_value, mut); in TEST() 76 EXPECT_EQ(string("default"), *mut); in TEST() 77 *mut = "Test long long long long value"; // ensure string allocates storage in TEST() 98 ::std::string* mut = field2.Mutable(&default_value, &arena); in TEST() 99 EXPECT_EQ(mut, field2.Mutable(&default_value, &arena)); in TEST() 100 EXPECT_EQ(mut, &field2.Get(&default_value)); in TEST() 101 EXPECT_NE(&default_value, mut); in TEST() [all …]
|
/external/python/cpython3/Python/ |
D | ceval_gil.h | 57 #define MUTEX_INIT(mut) \ argument 58 if (PyMUTEX_INIT(&(mut))) { \ 59 Py_FatalError("PyMUTEX_INIT(" #mut ") failed"); }; 60 #define MUTEX_FINI(mut) \ argument 61 if (PyMUTEX_FINI(&(mut))) { \ 62 Py_FatalError("PyMUTEX_FINI(" #mut ") failed"); }; 63 #define MUTEX_LOCK(mut) \ argument 64 if (PyMUTEX_LOCK(&(mut))) { \ 65 Py_FatalError("PyMUTEX_LOCK(" #mut ") failed"); }; 66 #define MUTEX_UNLOCK(mut) \ argument [all …]
|
D | condvar.h | 66 #define PyMUTEX_INIT(mut) pthread_mutex_init((mut), NULL) argument 67 #define PyMUTEX_FINI(mut) pthread_mutex_destroy(mut) argument 68 #define PyMUTEX_LOCK(mut) pthread_mutex_lock(mut) argument 69 #define PyMUTEX_UNLOCK(mut) pthread_mutex_unlock(mut) argument 75 #define PyCOND_WAIT(cond, mut) pthread_cond_wait((cond), (mut)) argument 79 PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, long long us) in PyCOND_TIMEDWAIT() argument 90 r = pthread_cond_timedwait((cond), (mut), &ts); in PyCOND_TIMEDWAIT()
|
D | thread_pthread.h | 132 pthread_mutex_t mut; member 465 status = pthread_mutex_init(&lock->mut, in PyThread_allocate_lock() 473 _Py_ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&lock->mut); in PyThread_allocate_lock() 504 status = pthread_mutex_destroy( &thelock->mut ); in PyThread_free_lock() 522 status = pthread_mutex_trylock( &thelock->mut ); in PyThread_acquire_lock_timed() 527 status = pthread_mutex_lock( &thelock->mut ); in PyThread_acquire_lock_timed() 546 &thelock->mut, &ts); in PyThread_acquire_lock_timed() 554 &thelock->mut); in PyThread_acquire_lock_timed() 571 status = pthread_mutex_unlock( &thelock->mut ); in PyThread_acquire_lock_timed() 590 status = pthread_mutex_lock( &thelock->mut ); in PyThread_release_lock() [all …]
|
/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/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()
|
D | thread_pthread.h | 117 pthread_mutex_t mut; member 374 status = pthread_mutex_init(&lock->mut, in PyThread_allocate_lock() 401 status = pthread_mutex_destroy( &thelock->mut ); in PyThread_free_lock() 420 status = pthread_mutex_lock( &thelock->mut ); in PyThread_acquire_lock() 424 status = pthread_mutex_trylock( &thelock->mut ); in PyThread_acquire_lock() 438 &thelock->mut); in PyThread_acquire_lock() 445 status = pthread_mutex_unlock( &thelock->mut ); in PyThread_acquire_lock() 463 status = pthread_mutex_lock( &thelock->mut ); in PyThread_release_lock() 468 status = pthread_mutex_unlock( &thelock->mut ); in PyThread_release_lock()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | SetOperationsTest.java | 49 HashSet<String> mut in testUnion() local 55 assertEquals(5, mut.size()); in testUnion() 67 HashSet<String> mut in testIntersection() local 73 assertEquals(1, mut.size()); in testIntersection() 85 HashSet<String> mut in testDifference() local 91 assertEquals(2, mut.size()); in testDifference() 111 HashSet<String> mut = Sets.symmetricDifference(friends, enemies) in testSymmetricDifference() local 117 assertEquals(4, mut.size()); in testSymmetricDifference() 120 mut = Sets.symmetricDifference(enemies, friends). in testSymmetricDifference() 125 assertEquals(3, mut.size()); in testSymmetricDifference()
|
/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/tensorflow/tensorflow/contrib/bigtable/kernels/test_kernels/ |
D | bigtable_test_client.cc | 28 void UpdateRow(const ::google::bigtable::v2::Mutation& mut, in UpdateRow() argument 30 if (mut.has_set_cell()) { in UpdateRow() 31 CHECK(mut.set_cell().timestamp_micros() >= -1) in UpdateRow() 32 << "Timestamp_micros: " << mut.set_cell().timestamp_micros(); in UpdateRow() 34 strings::Printf("%s:%s", mut.set_cell().family_name().c_str(), in UpdateRow() 35 string(mut.set_cell().column_qualifier()).c_str()); in UpdateRow() 36 (*row)[col] = string(mut.set_cell().value()); in UpdateRow() 37 } else if (mut.has_delete_from_column()) { in UpdateRow() 39 "%s:%s", mut.delete_from_column().family_name().c_str(), in UpdateRow() 40 string(mut.delete_from_column().column_qualifier()).c_str()); in UpdateRow() [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()
|
D | wait_for_pred.pass.cpp | 38 std::mutex mut; variable 49 std::unique_lock<std::mutex> lk(mut); in f() 73 std::unique_lock<std::mutex>lk(mut); in main() 87 std::unique_lock<std::mutex>lk(mut); in main()
|
D | wait_for.pass.cpp | 30 std::mutex mut; variable 41 std::unique_lock<std::mutex> lk(mut); in f() 66 std::unique_lock<std::mutex>lk(mut); in main() 80 std::unique_lock<std::mutex>lk(mut); in main()
|
D | wait_until.pass.cpp | 45 std::mutex mut; variable 54 std::unique_lock<std::mutex> lk(mut); in f() 79 std::unique_lock<std::mutex>lk(mut); in main() 93 std::unique_lock<std::mutex>lk(mut); in main()
|
D | wait_until_pred.pass.cpp | 55 std::mutex mut; variable 64 std::unique_lock<std::mutex> lk(mut); in f() 90 std::unique_lock<std::mutex>lk(mut); in main() 104 std::unique_lock<std::mutex>lk(mut); in main()
|
D | wait.pass.cpp | 24 std::mutex mut; variable 31 std::unique_lock<std::mutex> lk(mut); in f() 42 std::unique_lock<std::mutex>lk(mut); in main()
|
D | wait_pred.pass.cpp | 26 std::mutex mut; variable 42 std::unique_lock<std::mutex> lk(mut); in f() 52 std::unique_lock<std::mutex>lk(mut); in main()
|
/external/clang/test/Analysis/ |
D | const-method-call.cpp | 12 mutable int mut; member 61 t.mut = 4; in checkThatConstMethodDoesInvalidateMutableFields() 63 clang_analyzer_eval(t.mut); // expected-warning{{UNKNOWN}} in checkThatConstMethodDoesInvalidateMutableFields() 122 mutable int mut; member 148 t.mut = 1; in checkThatInheritedConstMethodDoesInvalidateMutableFields() 150 clang_analyzer_eval(t.mut); // expected-warning{{UNKNOWN}} in checkThatInheritedConstMethodDoesInvalidateMutableFields()
|
/external/libcxx/test/libcxx/thread/thread.condition/ |
D | PR30202_notify_from_pthread_created_thread.pass.cpp | 34 std::mutex mut; variable 42 std::unique_lock<std::mutex> lk(mut); in func() 52 std::unique_lock<std::mutex> lk(mut); in main() 66 std::unique_lock<std::mutex> lk(mut); in main()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | SetOperationsTest.java | 273 HashSet<String> mut in testUnion() local 279 assertEquals(5, mut.size()); in testUnion() 291 HashSet<String> mut in testIntersection() local 297 assertEquals(1, mut.size()); in testIntersection() 309 HashSet<String> mut in testDifference() local 315 assertEquals(2, mut.size()); in testDifference() 335 HashSet<String> mut = Sets.symmetricDifference(friends, enemies) in testSymmetricDifference() local 341 assertEquals(4, mut.size()); in testSymmetricDifference() 344 mut = Sets.symmetricDifference(enemies, friends). in testSymmetricDifference() 349 assertEquals(3, mut.size()); in testSymmetricDifference()
|
/external/libcxx/test/std/thread/thread.condition/ |
D | notify_all_at_thread_exit.pass.cpp | 28 std::mutex mut; variable 35 std::unique_lock<std::mutex> lk(mut); in func() 42 std::unique_lock<std::mutex> lk(mut); in main()
|
/external/python/cpython3/Lib/test/ |
D | test_thread.py | 111 mut = thread.allocate_lock() 112 mut.acquire() 117 mut.acquire() 118 mut.release() 126 mut.release()
|
/external/python/cpython2/Lib/test/ |
D | test_thread.py | 112 mut = thread.allocate_lock() 113 mut.acquire() 118 mut.acquire() 119 mut.release() 127 mut.release()
|