Skip to content

Commit

Permalink
sysrwlock: return status from pthread_rwlock_{rd,wr}lock
Browse files Browse the repository at this point in the history
  • Loading branch information
gganis committed Jul 6, 2017
1 parent aef4a21 commit 0db906c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XrdSys/XrdSysPthread.hh
Expand Up @@ -234,8 +234,8 @@ inline int CondWriteLock()
return 1;
}

inline void ReadLock() {pthread_rwlock_rdlock(&lock);}
inline void WriteLock() {pthread_rwlock_wrlock(&lock);}
inline int ReadLock() {return pthread_rwlock_rdlock(&lock);}
inline int WriteLock() {return pthread_rwlock_wrlock(&lock);}

inline void UnLock() {pthread_rwlock_unlock(&lock);}

Expand Down

0 comments on commit 0db906c

Please sign in to comment.