Changeset 23 for trunk/kernel/libk/remote_rwlock.h
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_rwlock.h
r14 r23 30 30 31 31 /*************************************************************************************** 32 * This structure defines a remote rwdlock,that supports several simultaneous read32 * This file defines a remote kernel lock, that supports several simultaneous read 33 33 * accesses, but only one write access. It implements a ticket based allocation policy. 34 34 * It can be used to synchronize threads running in different clusters, because … … 41 41 * When the lock is taken by another thread, the new-comers use a busy waiting policy. 42 42 * 43 * TODO This could be replaced by a descheduling policy and a threads waiting queue 44 * implemented in the lock itself: each thread releasing the lock (i.e. incrementing 45 * the current field) activates the first waiting thread... 43 * It uses a busy-waiting policy if the lock is already allocated to another thread. 46 44 **************************************************************************************/ 47 45
Note: See TracChangeset
for help on using the changeset viewer.