Changeset 1068f6a in mainline for generic/include/synch/mutex.h


Ignore:
Timestamp:
2006-05-20T19:32:06Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1982e45
Parents:
9ea6cc5
Message:

Turn address space lock, address space area lock and
page_ht_lock into mutexes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/synch/mutex.h

    r9ea6cc5 r1068f6a  
    4545#define mutex_lock_timeout(mtx,usec) \
    4646        _mutex_lock_timeout((mtx),(usec),SYNCH_NON_BLOCKING)
    47        
     47#define mutex_lock_active(mtx) \
     48        while (mutex_trylock((mtx)) != ESYNCH_OK_ATOMIC)
     49
    4850extern void mutex_initialize(mutex_t *mtx);
    4951extern int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int trylock);
Note: See TracChangeset for help on using the changeset viewer.