Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c81b6f2 in mainline


Ignore:
Timestamp:
2010-12-21T15:57:37Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
01b87dc5
Parents:
b0a76d5
Message:

Add fibril_rwlock_is_locked().

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/fibril_synch.c

    rb0a76d5 rc81b6f2  
    343343}
    344344
     345bool fibril_rwlock_is_locked(fibril_rwlock_t *frw)
     346{
     347        return fibril_rwlock_is_read_locked(frw) ||
     348            fibril_rwlock_is_write_locked(frw);
     349}
     350
    345351void fibril_condvar_initialize(fibril_condvar_t *fcv)
    346352{
  • uspace/lib/c/include/fibril_synch.h

    rb0a76d5 rc81b6f2  
    114114extern bool fibril_rwlock_is_read_locked(fibril_rwlock_t *);
    115115extern bool fibril_rwlock_is_write_locked(fibril_rwlock_t *);
     116extern bool fibril_rwlock_is_locked(fibril_rwlock_t *);
    116117
    117118extern void fibril_condvar_initialize(fibril_condvar_t *);
Note: See TracChangeset for help on using the changeset viewer.