|
|
| | | |
| There is no Free Art Definition, but the [http://artlibre.org/licence/lal/en/ Free Art License] is in the spirit of this definition. | | There is no Free Art Definition, but the [http://artlibre.org/licence/lal/en/ Free Art License] is in the spirit of this definition. |
| + | <noscript> |
| + | For full functionality of this site it is necessary to enable JavaScript. |
| + | Here are the <a href="https://www.enable-javascript.com/"> |
| + | instructions how to enable JavaScript in your web browser</a>. |
| + | </noscript> |
| + | FIXME: This isn't documented in Nutshell. |
| + | |
| + | Since MonitorMixin.new_cond returns a ConditionVariable, and the example above calls while_wait and signal, this class should be documented. |
| + | |
| + | Instance Method Summary |
| + | collapse |
| + | #broadcast ⇒ Object |
| + | Wakes up all threads waiting for this lock. |
| + | #signal ⇒ Object |
| + | Wakes up the first thread in line waiting for this lock. |
| + | #wait(timeout = nil) ⇒ Object |
| + | Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup. |
| + | #wait_until ⇒ Object |
| + | Calls wait repeatedly until the given block yields a truthy value. |
| + | #wait_while ⇒ Object |
| + | Calls wait repeatedly while the given block yields a truthy value. |
| + | Instance Method Details |
| + | #broadcast ⇒ Object |
| + | Wakes up all threads waiting for this lock. |
| + | |
| + | #signal ⇒ Object |
| + | Wakes up the first thread in line waiting for this lock. |
| + | |
| + | #wait(timeout = nil) ⇒ Object |
| + | Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup. |
| + | |
| + | If timeout is given, this method returns after timeout seconds passed, even if no other thread doesn't signal. |
| + | |
| + | #wait_until ⇒ Object |
| + | Calls wait repeatedly until the given block yields a truthy value. |
| + | |
| + | #wait_while ⇒ Object |
| + | Calls wait repeatedly while the given block yields a truthy value. |
| | | |
| ==Internet Engineering Task Force== | | ==Internet Engineering Task Force== |