HomeSort by: relevance | last modified time | path
    Searched defs:mutex (Results 1 - 25 of 181) sorted by relevancy

1 2 3 4 5 6 7 8

  /src/external/apache2/llvm/dist/libcxx/src/
mutex_destructor.cpp 9 // Define ~mutex.
11 // On some platforms ~mutex has been made trivial and the definition is only
15 // that *nothing* sees the non-trivial mutex declaration. For this reason
31 class _LIBCPP_TYPE_VIS mutex class
37 constexpr mutex() = default;
38 mutex(const mutex&) = delete;
39 mutex& operator=(const mutex&) = delete;
40 ~mutex() noexcept
    [all...]
  /src/tests/lib/libpthread/weak/
t_pthread_weak_nothread.c 36 ATF_TC(mutex); variable
37 ATF_TC_HEAD(mutex, tc)
40 "Test mutex usage in library with _NETBSD_PTHREAD_CREATE_WEAK");
42 ATF_TC_BODY(mutex, tc)
60 ATF_TP_ADD_TC(tp, mutex);
t_pthread_weak_threaded.c 36 ATF_TC(mutex); variable
37 ATF_TC_HEAD(mutex, tc)
40 "Test mutex usage in library with _NETBSD_PTHREAD_CREATE_WEAK");
42 ATF_TC_BODY(mutex, tc)
60 ATF_TP_ADD_TC(tp, mutex);
  /src/tests/libexec/ld.elf_so/
h_thread_local_dtor.c 35 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
45 pthread_mutex_lock(&mutex);
47 pthread_mutex_unlock(&mutex);
49 pthread_mutex_lock(&mutex);
50 pthread_cond_wait(&cond2, &mutex);
51 pthread_mutex_unlock(&mutex);
70 pthread_mutex_lock(&mutex);
75 pthread_cond_wait(&cond1, &mutex);
76 pthread_mutex_unlock(&mutex);
86 pthread_mutex_lock(&mutex);
    [all...]
  /src/crypto/external/apache2/openssl/dist/include/internal/
quic_engine.h 44 * This must be a mutex the lifetime of which will exceed that of the engine
46 * for providing a mutex as this makes it easier to handle instantiation and
49 * Note that this is a MUTEX not a RWLOCK as it needs to be an OS mutex for
52 * mutex primitive or using its RW mutex primitive.
54 CRYPTO_MUTEX *mutex; member in struct:quic_engine_args_st
70 /* Gets the mutex used by the engine. */
  /src/crypto/external/apache2/openssl/dist/ssl/quic/
quic_engine_local.h 36 * Master synchronisation mutex for the entire QUIC event domain. Used for
41 CRYPTO_MUTEX *mutex; member in struct:quic_engine_st
quic_thread_assist.c 69 CRYPTO_MUTEX *mutex = ossl_quic_channel_get_mutex(ch); local
71 if (mutex == NULL)
  /src/external/bsd/nvi/dist/common/
pthread.c 67 pthread_mutex_t *mutex; local
70 MALLOC_RET(NULL, mutex, pthread_mutex_t *, sizeof(*mutex));
72 if (rc = pthread_mutex_init(mutex, NULL)) {
73 free(mutex);
77 *p = mutex;
85 pthread_mutex_t *mutex = (pthread_mutex_t *)*p; local
87 if (rc = pthread_mutex_destroy(mutex))
90 free(mutex);
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.arch/
arm-pthread_cond_timedwait-bt.c 23 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
38 pthread_cond_timedwait(&cond, &mutex, &until);
40 err = pthread_mutex_unlock(&mutex);
56 err = pthread_mutex_lock(&mutex);
60 err = pthread_mutex_lock(&mutex);
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.trace/
ftrace-lock.c 28 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
45 if (pthread_mutex_trylock (&mutex) != 0)
53 if (pthread_mutex_unlock (&mutex) != 0)
  /src/external/mit/libuv/dist/test/
test-semaphore.c 29 uv_mutex_t mutex; member in struct:__anon23854
42 uv_mutex_lock(&c->mutex);
46 uv_mutex_unlock(&c->mutex);
57 ASSERT_OK(uv_mutex_init(&wc.mutex));
61 uv_mutex_lock(&wc.mutex);
64 uv_mutex_unlock(&wc.mutex); /* ergo, it should be ok to unlock after wait */
67 uv_mutex_destroy(&wc.mutex);
82 ASSERT_OK(uv_mutex_init(&wc.mutex));
88 uv_mutex_destroy(&wc.mutex);
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/
arm-pthread_cond_timedwait-bt.c 23 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
38 pthread_cond_timedwait(&cond, &mutex, &until);
40 err = pthread_mutex_unlock(&mutex);
56 err = pthread_mutex_lock(&mutex);
60 err = pthread_mutex_lock(&mutex);
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.trace/
ftrace-lock.c 28 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
45 if (pthread_mutex_trylock (&mutex) != 0)
53 if (pthread_mutex_unlock (&mutex) != 0)
  /src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/
amdgpu_dm_hdcp.h 48 struct mutex mutex; member in struct:hdcp_workqueue
  /src/sys/external/bsd/drm2/dist/drm/i915/gt/
intel_reset_types.h 11 #include <linux/mutex.h>
48 struct mutex mutex; /* serialises wedging/unwedging */ member in struct:intel_reset
  /src/sys/external/bsd/drm2/dist/include/drm/
drm_modeset_lock.h 73 * @mutex: resource locking
83 struct ww_mutex mutex; member in struct:drm_modeset_lock
109 ww_mutex_destroy(&lock->mutex);
118 return ww_mutex_is_locked(&lock->mutex);
127 lockdep_assert_held(&lock->mutex.base);
  /src/tests/lib/libpthread/
t_barrier.c 45 pthread_mutex_t mutex; variable
59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
63 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
79 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
83 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
85 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
93 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
95 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
99 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
101 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
    [all...]
t_preempt.c 46 pthread_mutex_t mutex; variable
58 printf("2: Locking mutex\n");
59 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
60 printf("2: Got mutex.\n");
63 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
95 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
97 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
106 PTHREAD_REQUIRE(pthread_cond_wait(&cond, &mutex));
111 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
112 printf("1: After releasing the mutex.\n")
    [all...]
  /src/external/bsd/jemalloc/include/jemalloc/internal/
mutex_pool.h 5 #include "jemalloc/internal/mutex.h"
34 * Note that a mutex pool doesn't work exactly the way an embdedded mutex would.
44 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
45 malloc_mutex_lock(tsdn, mutex);
50 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
51 malloc_mutex_unlock(tsdn, mutex);
  /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/
mutex_pool.h 5 #include "jemalloc/internal/mutex.h"
34 * Note that a mutex pool doesn't work exactly the way an embdedded mutex would.
44 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
45 malloc_mutex_lock(tsdn, mutex);
50 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
51 malloc_mutex_unlock(tsdn, mutex);
  /src/external/bsd/jemalloc.old/include/jemalloc/internal/
mutex_pool.h 5 #include "jemalloc/internal/mutex.h"
34 * Note that a mutex pool doesn't work exactly the way an embdedded mutex would.
44 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
45 malloc_mutex_lock(tsdn, mutex);
50 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); local
51 malloc_mutex_unlock(tsdn, mutex);
  /src/external/bsd/ntp/dist/libntp/lib/isc/pthreads/include/isc/
mutex.h 1 /* $NetBSD: mutex.h,v 1.2 2024/08/18 20:47:15 christos Exp $ */
20 /* Id: mutex.h,v 1.30 2007/06/19 23:47:18 tbox Exp */
36 * Supply mutex attributes that enable deadlock detection
52 * number of times each type of mutex was locked and the amount of time
63 pthread_mutex_t mutex; /*%< The actual mutex. */ member in struct:__anon7427
64 isc_mutexstats_t * stats; /*%< Mutex statistics. */
105 ((pthread_mutex_trylock((&(mp)->mutex)) == 0) ? \
115 ((pthread_mutex_destroy((&(mp)->mutex)) == 0) ? \
  /src/external/bsd/openldap/dist/servers/lloadd/
libevent_support.c 36 ldap_pvt_thread_mutex_t *mutex = local
40 rc = ldap_pvt_thread_mutex_recursive_init( mutex );
42 rc = ldap_pvt_thread_mutex_init( mutex );
45 ch_free( mutex );
46 mutex = NULL;
48 return mutex;
55 ldap_pvt_thread_mutex_t *mutex = lock; local
57 rc = ldap_pvt_thread_mutex_destroy( mutex );
59 ch_free( mutex );
65 ldap_pvt_thread_mutex_t *mutex = lock local
77 ldap_pvt_thread_mutex_t *mutex = lock; local
128 ldap_pvt_thread_mutex_t *mutex = lock; local
    [all...]
  /src/external/bsd/zstd/dist/contrib/pzstd/utils/test/
WorkQueueTest.cpp 15 #include <mutex>
25 std::mutex* mutex; member in struct:__anon8550::Popper
30 std::lock_guard<std::mutex> lock(*mutex);
95 std::mutex mutex; local
98 threads.emplace_back(Popper{&queue, results.data(), &mutex});
118 std::mutex mutex; local
204 std::mutex mutex; local
    [all...]
  /src/external/gpl3/gcc/dist/libgomp/config/posix/
sem.h 52 pthread_mutex_t mutex; member in struct:gomp_sem

Completed in 44 milliseconds

1 2 3 4 5 6 7 8