Skip to content

Commit

Permalink
Fix heim_threads.h rwlocks macros for pthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed Apr 15, 2016
1 parent c2fafff commit 22934ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/heim_threads.h
Expand Up @@ -92,8 +92,8 @@
#define HEIMDAL_MUTEX_unlock(m) pthread_mutex_unlock(m)
#define HEIMDAL_MUTEX_destroy(m) pthread_mutex_destroy(m)

#define HEIMDAL_RWLOCK rwlock_t
#define HEIMDAL_RWLOCK_INITIALIZER RWLOCK_INITIALIZER
#define HEIMDAL_RWLOCK pthread_rwlock_t
#define HEIMDAL_RWLOCK_INITIALIZER PTHREAD_RWLOCK_INITIALIZER
#define HEIMDAL_RWLOCK_init(l) pthread_rwlock_init(l, NULL)
#define HEIMDAL_RWLOCK_rdlock(l) pthread_rwlock_rdlock(l)
#define HEIMDAL_RWLOCK_wrlock(l) pthread_rwlock_wrlock(l)
Expand Down Expand Up @@ -215,7 +215,7 @@ heim_rwlock_trywrlock(heim_rwlock_t *l)
return EBUSY;
}

static inline vint
static inline int
heim_rwlock_unlock(heim_rwlock_t *l)
{
if (l->exclusive) {
Expand Down

0 comments on commit 22934ba

Please sign in to comment.