Home
last modified time | relevance | path

Searched refs:pthread_mutex_t (Results 1 – 25 of 197) sorted by relevance

12345678

/kernel/liteos_a/compat/posix/src/
Dpthread_mutex.c78 int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *oldPrioceiling) in pthread_mutex_setprioceiling()
83 int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex, int *prioceiling) in pthread_mutex_getprioceiling()
99 int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexAttr) in pthread_mutex_init()
116 int pthread_mutex_destroy(pthread_mutex_t *mutex) in pthread_mutex_destroy()
122 int pthread_mutex_lock(pthread_mutex_t *mutex) in pthread_mutex_lock()
127 int pthread_mutex_trylock(pthread_mutex_t *mutex) in pthread_mutex_trylock()
132 int pthread_mutex_unlock(pthread_mutex_t *mutex) in pthread_mutex_unlock()
Dpthread_cond.c129 cond->mutex = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in pthread_cond_init()
249 int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, in pthread_cond_timedwait()
300 int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) in pthread_cond_wait()
/kernel/linux/linux-5.10/tools/lib/lockdep/
Dpreload.c45 extern int __pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr);
46 extern int __pthread_mutex_lock(pthread_mutex_t *mutex);
47 extern int __pthread_mutex_trylock(pthread_mutex_t *mutex);
48 extern int __pthread_mutex_unlock(pthread_mutex_t *mutex);
49 extern int __pthread_mutex_destroy(pthread_mutex_t *mutex);
57 static int (*ll_pthread_mutex_init)(pthread_mutex_t *mutex,
59 static int (*ll_pthread_mutex_lock)(pthread_mutex_t *mutex) = __pthread_mutex_lock;
60 static int (*ll_pthread_mutex_trylock)(pthread_mutex_t *mutex) = __pthread_mutex_trylock;
61 static int (*ll_pthread_mutex_unlock)(pthread_mutex_t *mutex) = __pthread_mutex_unlock;
62 static int (*ll_pthread_mutex_destroy)(pthread_mutex_t *mutex) = __pthread_mutex_destroy;
[all …]
/kernel/linux/linux-5.10/tools/include/linux/
Dspinlock.h8 #define spinlock_t pthread_mutex_t
9 #define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER
10 #define __SPIN_LOCK_UNLOCKED(x) (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER
22 #define arch_spinlock_t pthread_mutex_t
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
D_pthreadtypes.h36 #define pthread_mutex_t __pthread_mutex_t_discard macro
48 #undef pthread_mutex_t
81 …def struct { unsigned int magic; unsigned int handle; pthread_mutexattr_t stAttr;} pthread_mutex_t; typedef
99 pthread_mutex_t* mutex; /**< Mutex locker for condition variable protection */
/kernel/liteos_m/kal/posix/src/
Dpthread_mutex.c130 int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexAttr) in pthread_mutex_init()
165 int pthread_mutex_destroy(pthread_mutex_t *mutex) in pthread_mutex_destroy()
192 STATIC UINT32 MuxPreCheck(const pthread_mutex_t *mutex, const LosTaskCB *runTask) in MuxPreCheck()
214 STATIC UINT32 MuxPendForPosix(pthread_mutex_t *mutex, UINT32 timeout) in MuxPendForPosix()
276 STATIC UINT32 MuxPostForPosix(pthread_mutex_t *mutex) in MuxPostForPosix()
329 int pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *absTimeout) in pthread_mutex_timedlock()
380 int pthread_mutex_lock(pthread_mutex_t *mutex) in pthread_mutex_lock()
417 int pthread_mutex_trylock(pthread_mutex_t *mutex) in pthread_mutex_trylock()
450 int pthread_mutex_unlock(pthread_mutex_t *mutex) in pthread_mutex_unlock()
Dpthread_cond.c153 cond->mutex = (pthread_mutex_t *)malloc(sizeof(pthread_mutex_t)); in pthread_cond_init()
266 int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, in pthread_cond_timedwait()
318 int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) in pthread_cond_wait()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_022.c40 static pthread_mutex_t *g_mtx;
42 static pthread_mutex_t g_mtxNull;
43 static pthread_mutex_t g_mtxMacro = PTHREAD_MUTEX_INITIALIZER;
78 pthread_mutex_t *tabMutex[2]; in Testcase()
DIt_posix_mutex_024.c49 pthread_mutex_t mutex1 = TEST_MUTEX_INIT; in Testcase()
50 pthread_mutex_t mutex2 = TEST_MUTEX_INIT; in Testcase()
51 pthread_mutex_t mutex3 = PTHREAD_MUTEX_INITIALIZER; in Testcase()
DIt_posix_mutex_084.c43 pthread_mutex_t mutex1084 = TEST_MUTEX_INIT; in Testcase()
44 pthread_mutex_t mutex2084 = TEST_MUTEX_INIT; in Testcase()
/kernel/liteos_a/kernel/extended/lms/usr/
Dlos_lms_pri.h96 extern pthread_mutex_t g_lmsMutex;
98 ATTRIBUTE_NO_SANITIZE_ADDRESS static inline void LmsLock(pthread_mutex_t *lock) in LmsLock()
103 ATTRIBUTE_NO_SANITIZE_ADDRESS static inline int LmsTrylock(pthread_mutex_t *lock) in LmsTrylock()
108 ATTRIBUTE_NO_SANITIZE_ADDRESS static inline void LmsUnlock(pthread_mutex_t *lock) in LmsUnlock()
/kernel/linux/linux-5.10/tools/lib/lockdep/tests/
DABBA_2threads.c5 pthread_mutex_t a = PTHREAD_MUTEX_INITIALIZER;
6 pthread_mutex_t b = PTHREAD_MUTEX_INITIALIZER;
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/full/
Dpthread_mutex_test_024.cpp34 static pthread_mutex_t g_muxLock001;
35 static pthread_mutex_t g_muxLock002;
36 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_018.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
/kernel/liteos_a/apps/shell/include/
Dshell.h81 pthread_mutex_t keyMutex;
82 pthread_mutex_t historyMutex;
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/smoke/
DIt_posix_mutex_019.c40 static pthread_mutex_t *g_mtx;
42 static pthread_mutex_t g_mtxNull, g_mtxDef;
81 pthread_mutex_t *tabMutex[2]; in Testcase()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
Dpthread_mutex_test_019.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_021.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_022.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_004.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_005.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_006.cpp33 static pthread_mutex_t g_mutexLock001;
34 static pthread_mutex_t g_mutexLock002;
35 static pthread_mutex_t g_mutexLock003;
Dpthread_mutex_test_020.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
Dpthread_mutex_test_007.cpp33 static pthread_mutex_t g_muxLock001;
34 static pthread_mutex_t g_muxLock002;
35 static pthread_mutex_t g_muxLock003;
/kernel/linux/linux-5.10/tools/lib/lockdep/include/liblockdep/
Dmutex.h9 pthread_mutex_t mutex;
64 #define pthread_mutex_t liblockdep_pthread_mutex_t macro

12345678