Changeset b3c38750 in mainline for uspace/lib/libc/include/rwlock.h


Ignore:
Timestamp:
2008-01-06T13:08:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4db6eaf
Parents:
9413c0d
Message:

Turn the namespace futex into rwlock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/rwlock.h

    r9413c0d rb3c38750  
    4545typedef atomic_t rwlock_t;
    4646
     47#define RWLOCK_INITIALIZE(rwlock)       \
     48    rwlock_t rwlock = FUTEX_INITIALIZER
     49
    4750#define rwlock_initialize(rwlock)       futex_initialize((rwlock), 1)
    4851#define rwlock_reader_lock(rwlock)      futex_down((rwlock))
Note: See TracChangeset for help on using the changeset viewer.