summaryrefslogtreecommitdiff
path: root/ptw32_rwlock_cancelwrwait.c
diff options
context:
space:
mode:
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));
}