Lines Matching full:sleep
113 Threads holding an exclusive lock may sleep,
118 between them is that shared/exclusive locks may be held during unbounded sleep.
119 Acquiring a contested shared/exclusive lock can perform an unbounded sleep.
137 They have features other lock types do not have such as sleep
198 .Ss Sleep/Wakeup
213 If a thread must wait for an external event, it is put to sleep by
219 Threads may also wait using one of the locking primitive sleep routines
228 the thread is being put to sleep.
237 Several of the sleep functions including
240 and the locking primitive sleep routines specify an additional lock
243 before the sleep routine returns.
252 In addition, all of the sleep routines will fully drop the
264 function is a special sleep function that waits for a specified
266 This sleep cannot be terminated early by either an explicit
271 .Xr sleep 9
295 Sleep locks will do this before sleeping.
305 .Ss Bounded vs. Unbounded Sleep
306 In a bounded sleep
312 In an unbounded sleep
323 This requires that no thread in a bounded sleep is waiting for a lock held
324 by a thread in an unbounded sleep.
326 a thread in a bounded sleep lends its priority to the owner of the lock
334 counting semaphores, condition variables, and sleep/wakeup.
341 It is an error to do any operation that could result in unbounded sleep
342 while holding any primitive from the 'bounded sleep' group.
348 .Fn sleep
351 functions is dropped before the thread enters the unbounded sleep and does
357 It is an error to do any operation that could result in unbounded sleep when
364 .Dq sleep
372 .Fn sleep
375 .It Em " You want:" Ta spin mtx Ta mutex/rw Ta rmlock Ta sleep rm Ta sx/lk Ta sleep
380 .It sleep rm Ta \&ok Ta \&ok Ta \&ok Ta \&ok-2 Ta \&ok-2 Ta \&ok-2/3
386 There are calls that atomically release this primitive when going to sleep
400 Though one can sleep while holding this lock,
402 .Fn sleep
403 function to atomically release this primitive when going to sleep and
411 .It Em "Context:" Ta spin mtx Ta mutex/rw Ta rmlock Ta sleep rm Ta sx/lk Ta sleep
433 .Xr sleep 9 ,