summaryrefslogtreecommitdiff
path: root/ptw32_rwlock_cancelwrwait.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /ptw32_rwlock_cancelwrwait.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'ptw32_rwlock_cancelwrwait.c')
-rw-r--r--ptw32_rwlock_cancelwrwait.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ptw32_rwlock_cancelwrwait.c b/ptw32_rwlock_cancelwrwait.c
index 7723a64..6b2456e 100644
--- a/ptw32_rwlock_cancelwrwait.c
+++ b/ptw32_rwlock_cancelwrwait.c
@@ -38,13 +38,13 @@
#include "implement.h"
void
-ptw32_rwlock_cancelwrwait(void * arg)
+ptw32_rwlock_cancelwrwait (void *arg)
{
- pthread_rwlock_t rwl = (pthread_rwlock_t) arg;
+ pthread_rwlock_t rwl = (pthread_rwlock_t) arg;
- rwl->nSharedAccessCount = -rwl->nCompletedSharedAccessCount;
- rwl->nCompletedSharedAccessCount = 0;
+ rwl->nSharedAccessCount = -rwl->nCompletedSharedAccessCount;
+ rwl->nCompletedSharedAccessCount = 0;
- (void) pthread_mutex_unlock(&(rwl->mtxSharedAccessCompleted));
- (void) pthread_mutex_unlock(&(rwl->mtxExclusiveAccess));
+ (void) pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted));
+ (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
}