summaryrefslogtreecommitdiff
path: root/pthread_rwlock_wrlock.c
diff options
context:
space:
mode:
authorrpj <rpj>2002-02-23 02:01:11 +0000
committerrpj <rpj>2002-02-23 02:01:11 +0000
commitd2b870cd9b6d91261a304e156819571acc309b55 (patch)
tree4b56dbc20070a24a90c123daadc35ab628f21e8c /pthread_rwlock_wrlock.c
parent09cf57ffcf96b3f0cf7d5ec959c455ba54245a65 (diff)
* pthread_cond_destroy.c: Expand the time change
critical section to solve deadlock problem. * pthread.c: Add all remaining C modules. * pthread.h: Use dllexport/dllimport attributes on functions to avoid using pthread.def. * sched.h: Likewise. * semaphore.h: Likewise. * GNUmakefile: Add new targets for single translation unit build to maximise inlining potential; generate pthread.def automatically. * Makefile: Likewise, but no longer uses pthread.def.
Diffstat (limited to 'pthread_rwlock_wrlock.c')
-rw-r--r--pthread_rwlock_wrlock.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/pthread_rwlock_wrlock.c b/pthread_rwlock_wrlock.c
index 6e85bf1..60061f3 100644
--- a/pthread_rwlock_wrlock.c
+++ b/pthread_rwlock_wrlock.c
@@ -40,18 +40,6 @@
#include "pthread.h"
#include "implement.h"
-static void
-ptw32_rwlock_cancelwrwait(void * arg)
-{
- pthread_rwlock_t rwl = (pthread_rwlock_t) arg;
-
- rwl->nSharedAccessCount = -rwl->nCompletedSharedAccessCount;
- rwl->nCompletedSharedAccessCount = 0;
-
- (void) pthread_mutex_unlock(&(rwl->mtxSharedAccessCompleted));
- (void) pthread_mutex_unlock(&(rwl->mtxExclusiveAccess));
-}
-
int
pthread_rwlock_wrlock(pthread_rwlock_t * rwlock)
{