HomeSort by relevance Sort by last modified time
    Searched full:mutex (Results 76 - 100 of 3911) sorted by null

1 2 34 5 6 7 8 91011>>

  /prebuilts/ndk/current/platforms/android-9/arch-arm/usr/include/linux/
mutex.h 22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
36 #define mutex_destroy(mutex) do { } while (0)
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
  /prebuilts/ndk/current/platforms/android-9/arch-mips/usr/include/linux/
mutex.h 22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
36 #define mutex_destroy(mutex) do { } while (0)
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
  /prebuilts/ndk/current/platforms/android-9/arch-x86/usr/include/linux/
mutex.h 22 struct mutex { struct
35 #define mutex_init(mutex) do { static struct lock_class_key __key; __mutex_init((mutex), #mutex, &__key); } while (0)
36 #define mutex_destroy(mutex) do { } while (0)
42 #define DEFINE_MUTEX(mutexname) struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
  /toolchain/binutils/binutils-2.25/gas/testsuite/gas/ia64/
dv-mutex.s 2 // Test mutex relation handling
7 .pred.rel.mutex p1, p2, p3
13 // non-predicated compares generate a mutex
19 // unconditional compares generate a mutex
25 // non-predicated compares don't remove mutex
31 // predicated compares don't remove mutex
  /external/guava/guava-tests/test/com/google/common/collect/
SynchronizedDequeTest.java 34 Deque<String> outer = Synchronized.deque(inner, inner.mutex);
41 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedDequeTest.TestDeque
45 assertTrue(Thread.holdsLock(mutex));
51 assertTrue(Thread.holdsLock(mutex));
57 assertTrue(Thread.holdsLock(mutex));
63 assertTrue(Thread.holdsLock(mutex));
69 assertTrue(Thread.holdsLock(mutex));
76 assertFalse(Thread.holdsLock(mutex));
82 assertTrue(Thread.holdsLock(mutex));
88 assertTrue(Thread.holdsLock(mutex));
    [all...]
SynchronizedNavigableSetTest.java 44 private static final Object MUTEX = new Integer(1); // something Serializable
49 new TreeSet<E>((Comparator<E>) Ordering.natural().nullsFirst()), MUTEX);
51 Synchronized.navigableSet(inner, MUTEX);
58 TestSet(NavigableSet<E> delegate, Object mutex) {
59 super(delegate, mutex);
67 assertTrue(Thread.holdsLock(mutex));
76 assertTrue(Thread.holdsLock(mutex));
81 assertTrue(Thread.holdsLock(mutex));
86 assertTrue(Thread.holdsLock(mutex));
95 assertTrue(Thread.holdsLock(mutex));
    [all...]
SynchronizedQueueTest.java 34 Queue<String> outer = Synchronized.queue(inner, inner.mutex);
41 public final Object mutex = new Integer(1); // something Serializable field in class:SynchronizedQueueTest.TestQueue
45 assertTrue(Thread.holdsLock(mutex));
51 assertTrue(Thread.holdsLock(mutex));
57 assertTrue(Thread.holdsLock(mutex));
63 assertTrue(Thread.holdsLock(mutex));
69 assertTrue(Thread.holdsLock(mutex));
76 assertFalse(Thread.holdsLock(mutex));
82 assertTrue(Thread.holdsLock(mutex));
88 assertTrue(Thread.holdsLock(mutex));
    [all...]
  /external/clang/test/SemaObjC/
warn-thread-safety-analysis.m 3 struct __attribute__ ((lockable)) Mutex {};
5 struct Mutex mu1;
16 Foo_fun1(1); // expected-warning{{calling function 'Foo_fun1' requires holding mutex 'mu1' exclusively}}
  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
nonmember_swap.pass.cpp 12 // <mutex>
14 // template <class Mutex> class unique_lock;
16 // template <class Mutex>
17 // void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y);
19 #include <mutex>
22 struct mutex struct
28 mutex m;
32 std::unique_lock<mutex> lk1(m);
33 std::unique_lock<mutex> lk2
    [all...]
  /external/v8/src/base/platform/
mutex.h 22 // Mutex
25 // data from being simultaneously accessed by multiple threads. A mutex offers
27 // - A calling thread owns a mutex from the time that it successfully calls
29 // - When a thread owns a mutex, all other threads will block (for calls to
31 // attempt to claim ownership of the mutex.
32 // A calling thread must not own the mutex prior to calling |Lock()| or
33 // |TryLock()|. The behavior of a program is undefined if a mutex is destroyed
34 // while still owned by some thread. The Mutex class is non-copyable.
36 class Mutex final {
38 Mutex();
    [all...]
  /hardware/broadcom/wlan/bcmdhd/wifi_hal/
sync.h 7 class Mutex
12 Mutex() {
15 ~Mutex() {
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.mod/
release.pass.cpp 12 // template <class Mutex> class shared_lock;
21 struct mutex struct
29 int mutex::lock_count = 0;
30 int mutex::unlock_count = 0;
32 mutex m;
39 std::shared_lock<mutex> lk(m);
40 assert(lk.mutex() == &m);
42 assert(mutex::lock_count == 1);
43 assert(mutex::unlock_count == 0);
45 assert(lk.mutex() == nullptr)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
nonmember_swap.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
14 // template <class Mutex>
15 // void swap(unique_lock<Mutex>& x, unique_lock<Mutex>& y);
17 #include <mutex>
20 struct mutex struct
26 mutex m;
30 std::unique_lock<mutex> lk1(m);
31 std::unique_lock<mutex> lk2
    [all...]
member_swap.pass.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 struct mutex struct
25 mutex m;
29 std::unique_lock<mutex> lk1(m);
30 std::unique_lock<mutex> lk2;
32 assert(lk1.mutex() == nullptr);
34 assert(lk2.mutex() == &m);
  /external/dbus/dbus/
dbus-threads-internal.h 36 * A mutex which is recursive if possible, else non-recursive.
42 * A mutex suitable for use with condition variables.
51 void _dbus_rmutex_lock (DBusRMutex *mutex);
52 void _dbus_rmutex_unlock (DBusRMutex *mutex);
56 void _dbus_cmutex_lock (DBusCMutex *mutex);
57 void _dbus_cmutex_unlock (DBusCMutex *mutex);
64 DBusCMutex *mutex);
66 DBusCMutex *mutex,
75 void _dbus_platform_rmutex_free (DBusRMutex *mutex);
76 void _dbus_platform_rmutex_lock (DBusRMutex *mutex);
    [all...]
  /external/libmicrohttpd/src/include/
platform_interface.h 243 #error "No base mutex API is available."
248 * Create new mutex.
249 * @param mutex pointer to the mutex
252 #define MHD_mutex_create_(mutex) \
253 ((0 == pthread_mutex_init ((mutex), NULL)) ? MHD_YES : MHD_NO)
256 * Create new mutex.
257 * @param mutex pointer to mutex
260 #define MHD_mutex_create_(mutex) \
    [all...]
  /prebuilts/go/darwin-x86/test/
assign.go 16 sync.Mutex
21 var x, y sync.Mutex
31 var x, y [2]sync.Mutex
41 x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex"
45 x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex"
49 x := &sync.Mutex{} // ok
50 var y sync.Mutex // ok
  /prebuilts/go/linux-x86/test/
assign.go 16 sync.Mutex
21 var x, y sync.Mutex
31 var x, y [2]sync.Mutex
41 x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex"
45 x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex"
49 x := &sync.Mutex{} // ok
50 var y sync.Mutex // ok
  /external/clang/test/PCH/
thread-safety-attrs.cpp 33 class __attribute__((lockable)) Mutex {
45 MutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu)));
51 ReaderMutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu)));
57 ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu);
98 Mutex sls_mu;
100 Mutex sls_mu2 __attribute__((acquired_after(sls_mu)));
108 Mutex mu;
212 // expected-warning{{releasing mutex 'sls_mu' that was not held}}
218 // expected-warning{{acquiring mutex 'sls_mu' that is already held}}
223 sls_mu.Lock(); // expected-note {{mutex acquired here}
    [all...]
  /external/mesa3d/src/gallium/auxiliary/os/
os_thread.h 30 * Thread, mutex, condition variable, barrier, semaphore and
87 #define pipe_static_mutex(mutex) \
88 static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
90 #define pipe_mutex_init(mutex) \
91 (void) pthread_mutex_init(&(mutex), NULL)
93 #define pipe_mutex_destroy(mutex) \
94 pthread_mutex_destroy(&(mutex))
96 #define pipe_mutex_lock(mutex) \
97 (void) pthread_mutex_lock(&(mutex))
99 #define pipe_mutex_unlock(mutex) \
344 pipe_mutex mutex; member in struct:__anon18975
396 pipe_mutex mutex; member in struct:__anon18976
    [all...]
  /external/valgrind/drd/tests/
recursive_mutex.stderr.exp-linux 2 Recursive mutex (statically initialized).
4 Recursive mutex (initialized via mutex attributes).
6 Error checking mutex.
8 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1.
12 mutex 0x........ was first observed at:
18 Non-recursive mutex.
20 Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1
    [all...]
hold_lock.c 28 pthread_mutex_t mutex; local
45 fprintf(stderr, "Locking mutex ...\n");
49 pthread_mutex_init(&mutex, &mutexattr);
51 pthread_mutex_lock(&mutex);
53 pthread_mutex_lock(&mutex);
54 pthread_mutex_unlock(&mutex);
55 pthread_mutex_unlock(&mutex);
56 pthread_mutex_destroy(&mutex);
  /external/libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
copy_ctor.fail.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 std::mutex m;
23 std::unique_lock<std::mutex> lk0(m);
24 std::unique_lock<std::mutex> lk = lk0;
25 assert(lk.mutex() == &m);
27 assert(lk0.mutex() == nullptr);
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.cons/
copy_ctor.fail.cpp 10 // <mutex>
12 // template <class Mutex> class unique_lock;
16 #include <mutex>
19 std::mutex m;
23 std::unique_lock<std::mutex> lk0(m);
24 std::unique_lock<std::mutex> lk = lk0;
25 assert(lk.mutex() == &m);
27 assert(lk0.mutex() == nullptr);
  /external/valgrind/drd/
drd_mutex.c 69 const Addr mutex, const MutexT mutex_type)
71 tl_assert(mutex);
72 tl_assert(p->a1 == mutex);
86 void DRD_(mutex_ignore_ordering)(const Addr mutex)
88 struct mutex_info* p = DRD_(mutex_get)(mutex);
94 mutex);
99 DRD_(not_a_mutex)(mutex);
122 "Destroying locked mutex",
130 /** Report that address 'mutex' is not the address of a mutex object. *
    [all...]

Completed in 528 milliseconds

1 2 34 5 6 7 8 91011>>