HomeSort by: relevance | last modified time | path
    Searched refs:Mutex (Results 1 - 25 of 138) sorted by relevancy

1 2 3 4 5 6

  /src/sys/external/bsd/acpica/dist/executer/
exmutex.c 3 * Module Name: exmutex - ASL Mutex Acquire/Release functions
64 * PARAMETERS: ObjDesc - The mutex to be unlinked
68 * DESCRIPTION: Remove a mutex from the "AcquiredMutex" list
76 ACPI_THREAD_STATE *Thread = ObjDesc->Mutex.OwnerThread;
86 if (ObjDesc->Mutex.Next)
88 (ObjDesc->Mutex.Next)->Mutex.Prev = ObjDesc->Mutex.Prev;
91 if (ObjDesc->Mutex.Prev)
93 (ObjDesc->Mutex.Prev)->Mutex.Next = ObjDesc->Mutex.Next
    [all...]
exsystem.c 108 * PARAMETERS: Mutex - Mutex to wait on
113 * DESCRIPTION: Implements a mutex wait with a check to see if the
114 * mutex is available immediately. If it is not, the
121 ACPI_MUTEX Mutex,
130 Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT);
141 Status = AcpiOsAcquireMutex (Mutex, Timeout);
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_mutex.h 43 class Mutex {
45 explicit Mutex(MutexType type, StatType stat_type);
46 ~Mutex();
65 Mutex(const Mutex&);
66 void operator = (const Mutex&);
69 typedef GenericScopedLock<Mutex> Lock;
70 typedef GenericScopedReadLock<Mutex> ReadLock;
tsan_mutex.cc 20 // Simple reader-writer spin-mutex. Optimized for not-so-contended case.
25 // then Report mutex can be locked while under Threads mutex.
55 // If [i][j]==true, then one can lock mutex j while under mutex i.
123 Printf("Mutex %d participates in a cycle\n", i);
211 Mutex::Mutex(MutexType type, StatType stat_type) {
223 Mutex::~Mutex() {
    [all...]
tsan_trace.h 59 Mutex mtx;
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/
tsan_test_util.h 32 class Mutex {
44 explicit Mutex(Type type = Normal);
45 ~Mutex();
63 Mutex(const Mutex&);
64 void operator = (const Mutex&);
104 void Create(const Mutex &m);
105 void Destroy(const Mutex &m);
106 void Lock(const Mutex &m);
107 bool TryLock(const Mutex &m)
    [all...]
tsan_test_util_posix.cc 92 Mutex::Mutex(Type type)
97 Mutex::~Mutex() {
101 void Mutex::Init() {
116 void Mutex::StaticInit() {
124 void Mutex::Destroy() {
137 void Mutex::Lock() {
149 bool Mutex::TryLock() {
162 void Mutex::Unlock()
    [all...]
tsan_mutex.cc 24 Mutex m;
42 Mutex m(Mutex::Spin);
60 Mutex m(Mutex::RW);
95 TEST(ThreadSanitizer, Mutex) {
96 Mutex m;
112 Mutex m(Mutex::Spin);
128 Mutex m(Mutex::RW)
    [all...]
  /src/sys/external/bsd/acpica/dist/dispatcher/
dsmethod.c 183 * Mark the method as serialized. Later code will create a mutex for
296 * DESCRIPTION: Create a mutex object for a serialized control method
311 /* Create the new mutex object */
319 /* Create the actual OS Mutex */
321 Status = AcpiOsCreateMutex (&MutexDesc->Mutex.OsMutex);
328 MutexDesc->Mutex.SyncLevel = MethodDesc->Method.SyncLevel;
329 MethodDesc->Method.Mutex = MutexDesc;
380 * If this method is serialized, we need to acquire the method mutex.
385 * Create a mutex for the method if it is defined to be Serialized
386 * and a mutex has not already been created. We defer the mutex creatio
    [all...]
  /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/core/sync/
mutex.d 2 * The mutex module provides a primitive for maintaining mutually exclusive
16 module core.sync.mutex;
37 // Mutex
46 * This class represents a general purpose, recursive mutex.
51 class Mutex :
60 * Initializes a mutex object.
74 // Undocumented, useful only in Mutex.this().
76 if (is(Q == Mutex) || is(Q == shared Mutex))
106 * Initializes a mutex object and sets it as the monitor for `obj`
    [all...]
barrier.d 21 import core.sync.mutex;
59 m_lock = new Mutex;
97 Mutex m_lock;
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
tsan_mutex_test.cc 96 TEST(Mutex, Write) {
97 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
98 TestData<Mutex> data(&mtx);
101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data);
106 TEST(Mutex, ReadWrite) {
107 Mutex mtx(MutexTypeAnnotations, StatMtxAnnotations);
108 TestData<Mutex> data(&mtx);
111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data);
116 TEST(Mutex, SpinWrite) {
  /src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
critical_.d 23 initMutex(cast(Mutex*)&gcs.mtx);
33 destroyMutex(cast(Mutex*)&p.mtx);
47 lockMutex(cast(Mutex*)&gcs.mtx);
51 initMutex(cast(Mutex*)&cs.mtx);
54 unlockMutex(cast(Mutex*)&gcs.mtx);
73 Mutex mtx;
80 lockMutex(cast(Mutex*)&gcs.mtx);
83 initMutex(cast(Mutex*)&cs.mtx);
88 unlockMutex(cast(Mutex*)&gcs.mtx);
  /src/tests/lib/libobjc/
t_threads.m 45 static objc_mutex_t Mutex;
113 Mutex = objc_mutex_allocate();
122 objc_mutex_lock(Mutex);
123 objc_condition_wait(Condition, Mutex);
124 objc_mutex_unlock(Mutex);
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/
dd_rtl.h 23 struct Mutex {
41 typedef AddrHashMap<Mutex, 31051> MutexHashMap;
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/
vts_many_threads_bench.cc 31 class __attribute__((aligned(64))) Mutex {
33 Mutex() { pthread_mutex_init(&m_, NULL); }
34 ~Mutex() { pthread_mutex_destroy(&m_); }
43 Mutex mutexes[kNumMutexes];
  /src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
thread_manager.h 7 #include "mutex.h"
17 Mutex& GetBenchmarkMutex() const RETURN_CAPABILITY(benchmark_mutex_) {
54 mutable Mutex benchmark_mutex_;
57 Mutex end_cond_mutex_;
mutex.h 5 #include <mutex>
71 // NOTE: Wrappers for std::mutex and std::unique_lock are provided so that
75 class CAPABILITY("mutex") Mutex {
77 Mutex() {}
81 std::mutex& native_handle() { return mut_; }
84 std::mutex mut_;
88 typedef std::unique_lock<std::mutex> MutexLockImp;
91 MutexLock(Mutex& m) ACQUIRE(m) : ml_(m.native_handle()) {}
121 Mutex lock_
    [all...]
  /src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
thread_manager.h 7 #include "mutex.h"
17 Mutex& GetBenchmarkMutex() const RETURN_CAPABILITY(benchmark_mutex_) {
56 mutable Mutex benchmark_mutex_;
59 Mutex end_cond_mutex_;
mutex.h 5 #include <mutex>
71 // NOTE: Wrappers for std::mutex and std::unique_lock are provided so that
75 class CAPABILITY("mutex") Mutex {
77 Mutex() {}
81 std::mutex& native_handle() { return mut_; }
84 std::mutex mut_;
88 typedef std::unique_lock<std::mutex> MutexLockImp;
91 MutexLock(Mutex& m) ACQUIRE(m) : ml_(m.native_handle()) {}
121 Mutex lock_
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Support/
Parallel.cpp 49 std::lock_guard<std::mutex> Lock(Mutex);
63 std::lock_guard<std::mutex> Lock(Mutex);
91 std::lock_guard<std::mutex> Lock(Mutex);
101 std::unique_lock<std::mutex> Lock(Mutex);
114 std::mutex Mutex;
    [all...]
  /src/sys/external/bsd/acpica/dist/utilities/
utmutex.c 3 * Module Name: utmutex - local mutex support
69 * DESCRIPTION: Create the system mutex objects. This includes mutexes,
85 /* Create each of the predefined mutex objects */
116 /* Mutex for _OSI support */
144 * DESCRIPTION: Delete all of the system mutex objects. This includes mutexes,
159 /* Delete each predefined mutex object */
185 * PARAMETERS: MutexID - ID of the mutex to be created
189 * DESCRIPTION: Create a mutex object.
203 if (!AcpiGbl_MutexInfo[MutexId].Mutex)
205 Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex);
    [all...]
utxfmutex.c 3 * Module Name: utxfmutex - external AML mutex access functions
66 * PARAMETERS: Handle - Mutex or prefix handle (optional)
67 * Pathname - Mutex pathname (optional)
68 * RetObj - Where the mutex object is returned
72 * DESCRIPTION: Get an AML mutex object. The mutex node is pointed to by
96 /* Get a the namespace node for the mutex */
109 /* Ensure that we actually have a Mutex object */
117 /* Get the low-level mutex object */
134 * PARAMETERS: Handle - Mutex or prefix handle (optional
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
Mutex.h 1 //===- llvm/Support/Mutex.h - Mutex Operating System Concept -----*- C++ -*-===//
9 // This file declares the llvm::sys::Mutex class.
18 #include <mutex>
24 /// SmartMutex - A mutex with a compile time constant parameter that
25 /// indicates whether this mutex should become a no-op when we're not
67 /// Mutex - A standard, always enforced mutex.
68 typedef SmartMutex<false> Mutex;
  /src/external/gpl3/gcc.old/dist/libphobos/testsuite/libphobos.thread/
tlsgc_sections.d 3 import core.sync.mutex;
7 __gshared Mutex g_mutex;
50 g_mutex = new Mutex;

Completed in 38 milliseconds

1 2 3 4 5 6