Changeset 623 for trunk/kernel/libk/busylock.h
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/busylock.h
r563 r623 34 34 * a shared object located in a given cluster, made by thread(s) running in same cluster. 35 35 * It uses a busy waiting policy when the lock is taken by another thread, and should 36 * be used to execute very short actions, such as basic allocators, or to protect37 * higher level synchronisation objects, such as queuelock or rwlock.38 * WARNING: a thread cannot yield when it is owning a busylock (local or remote).36 * be used to execute very short actions, such as accessing basic allocators, or higher 37 * level synchronisation objects (barriers, queuelocks, or rwlocks). 38 * WARNING: a thread cannot yield when it is owning a busylock. 39 39 * 40 40 * - To acquire the lock, we use a ticket policy to avoid starvation: the calling thread
Note: See TracChangeset
for help on using the changeset viewer.