Changeset 08a19ba in mainline for kernel/generic/src/synch/rwlock.c


Ignore:
Timestamp:
2008-06-23T18:44:48Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a1744e
Parents:
deaf8d5
Message:

Support for active mutexes. Active mutexes implement busy waiting, pretty much
in the same way as spinlocks, but can be passed to condition variables, which is
the motivation for this enhancement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/rwlock.c

    rdeaf8d5 r08a19ba  
    8383void rwlock_initialize(rwlock_t *rwl) {
    8484        spinlock_initialize(&rwl->lock, "rwlock_t");
    85         mutex_initialize(&rwl->exclusive);
     85        mutex_initialize(&rwl->exclusive, MUTEX_PASSIVE);
    8686        rwl->readers_in = 0;
    8787}
Note: See TracChangeset for help on using the changeset viewer.