Home
last modified time | relevance | path

Searched refs:mutexes (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/realtime/func/pi-tests/
H A Dsbrk_mutex.c23 * Create NUM_THREADS to walk through an array of malloc'd pthread mutexes.
34 * 2006-03-01: Changed mutexes to PTHREAD_MUTEX_ROBUST_NP type -Sripathi Kodi
53 static pthread_mutex_t *mutexes[NUM_MUTEXES]; variable
83 pthread_mutex_unlock(mutexes[i - NUM_CONCURRENT_LOCKS]); in worker_thread()
87 pthread_mutex_lock(mutexes[i]); in worker_thread()
120 /* malloc and initialize the mutexes */ in main()
121 printf("allocating and initializing %d mutexes\n", NUM_MUTEXES); in main()
123 if (!(mutexes[m] = malloc(sizeof(pthread_mutex_t)))) { in main()
126 if ((ret = pthread_mutex_init(mutexes[m], &mutexattr))) { in main()
130 printf("mutexes allocate in main()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dpthread_internal.h36 * Initialize/destroy a list of mutexes/conditions contained in a structure.
37 * The positions of these mutexes/conditions in the structure are given by
40 * of successfully initialized mutexes and conditions in the object itself
41 * and ff_pthread_free() uses this number to destroy exactly the mutexes and
44 * @param obj The object containing the mutexes/conditions.
47 * initialized mutexes/condition variables; said variable
50 * contains the offsets of all the mutexes, the second
57 * Macros to help creating the above lists. mutexes and conds need
61 #define DEFINE_OFFSET_ARRAY(type, name, cnt_variable, mutexes, conds) \
63 OFFSET_ARRAY mutexes, \
[all...]
/third_party/rust/crates/rust-openssl/openssl-sys/src/
H A Dlib.rs181 let mut mutexes = Box::new(Vec::new()); in init() variables
183 mutexes.push(Mutex::new(())); in init()
185 MUTEXES = mem::transmute(mutexes); in init()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dthread_identity_test.cc108 Mutex mutexes[kNumMutexes]; in TEST() local
115 MutexLock lock(&mutexes[m]); in TEST()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_mutex_test.cpp163 std::vector<pthread_mutex_t> mutexes(TEST_SIZE); in HWTEST_F()
164 for (auto& mutex : mutexes) { in HWTEST_F()
170 mutexes.clear(); in HWTEST_F()

Completed in 2 milliseconds