Class Event
Class implementing event objects.
An event manages a flag that can be set
to true with the set
()
method and reset to false with the clear
() method. The
wait
() method blocks until the flag is true. The flag is
initially false.
This class is not thread safe.
Inherits from
-
Object
(base class)
Methods
Name | Description |
---|---|
clear
|
Reset the internal flag to false. Subsequently, coroutines calling
wait () will block until set () is called to set
the internal flag to true again.
|
isSet
|
Return true if and only if the internal flag is true. |
set
|
Set the internal flag to true. All coroutines waiting for it to become
true are awakened. Coroutines that call wait () once the flag
is true will not block at all.
|
wait
|
Block until the internal flag is true. |
Authors
Dragos Carp
Copyright
© 2015-2016 Dragos Carp
License
Boost Software License - Version 1.0