diff options
author | rpj <rpj> | 2001-02-06 07:56:03 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-02-06 07:56:03 +0000 |
commit | 9a59a1b4611cbd4b1fcf7549a97dc2cbe340b794 (patch) | |
tree | d07b9cf23658b2af706be05fa72ba54e1431311d /tests/mutex2.c | |
parent | ced3d3f3827b360617e71fe557e6d1880ad56cb4 (diff) |
* mutex.c (pthread_mutexattr_settype): New; allow
the following types of mutex:
PTHREAD_MUTEX_DEFAULT
PTHREAD_MUTEX_NORMAL
PTHREAD_MUTEX_ERRORCHECK
PTHREAD_MUTEX_RECURSIVE
(pthread_mutex_lock): Process the lock request
according to the mutex type.
* mutex.c: No longer use Win32 mutexes as the
basis of POSIX mutexes when TryEnterCriticalSection
isn't supported; implement our own versions of
ptw32_{Initialize,Delete,TryEnter,Enter,Leave}CriticalSection
functions to emulate TryEnterCriticalSection when
it isn't supported by the system; don't allow recursive
mutex locks (similar to PTHREAD_MUTEX_ERRORCHECK
on other systems).
- Thomas Pfaff <tpfaff@gmx.net>
Diffstat (limited to 'tests/mutex2.c')
0 files changed, 0 insertions, 0 deletions