Usage sample of unix mutex and conditional
2010-01-10 14:16
555 查看
pthread_mutex_init
pthread_mutex_destroy
pthread_mutex_t
pthread_mutex_lock
pthread_mutex_unlock
pthread_mutex_trylock
pthread_cond_t _cond;
retVal = pthread_cond_init(&_cond,
0);
retVal = pthread_cond_signal(&_cond);
retVal =
pthread_cond_wait(&_cond, &(mutex));
retVal =
pthread_cond_timedwait(&_cond, &(m
utex), &abstime);
retVal =
pthread_cond_broadcast(&_cond);
pthread_cond_destroy(&_cond);
pthread_mutex_t singletonMutex =
PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_destroy
pthread_mutex_t
pthread_mutex_lock
pthread_mutex_unlock
pthread_mutex_trylock
pthread_cond_t _cond;
retVal = pthread_cond_init(&_cond,
0);
retVal = pthread_cond_signal(&_cond);
retVal =
pthread_cond_wait(&_cond, &(mutex));
retVal =
pthread_cond_timedwait(&_cond, &(m
utex), &abstime);
retVal =
pthread_cond_broadcast(&_cond);
pthread_cond_destroy(&_cond);
pthread_mutex_t singletonMutex =
PTHREAD_MUTEX_INITIALIZER;
相关文章推荐
- Usage sample of unix pipe
- Usage sample of unix signal to handle function call with a timeout value.
- Usage sample of unix semaphore
- Usage sample of unix Message Queues
- Analysing the ASM code of a simple sample of C programming language at Linux Platform by GCC and GDB
- Bash/KSH/SH Shell: Find The Length Of a String On a UNIX, Linux, BSD, and OS X
- usage of javasigner and keytool
- MySQL错误:ERROR 1221 (HY000): Incorrect usage of UNION and ORDER BY
- DDJ书评(2003.11):Unix Zen and Now(有 The Art of Unix Programming)
- [Angular2 Form] Nested formGroup, and usage of formGroupName
- Incorrect usage of UNION and ORDER BY
- Usage and Configuration of the Oracle shared Server
- The study of list ,tuple and conditional statement in Python(20170905)
- The Usage of Lambda and Heap in the C++ STL
- the principle and usage of va_list
- mysql主从复制报错 :Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
- C#: the sample usage of c# template
- MySQL错误:ERROR 1221 (HY000): Incorrect usage of UNION and ORDER BY
- usage of fscanf and other read functions in C/C++
- Conditional and marginal distributions of a multivariate Gaussian