Provides a latch that you can wait on.
More...
Go to the source code of this file.
|
|
typedef struct qev_latch | qev_latch_t |
| | I've got everything to hide.
|
| |
Provides a latch that you can wait on.
- Author
- Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com
- Copyright
- 2012-2014 Clear Channel Inc.
Waits for the latch.
- Parameters
-
| latch | The latch to decrement |
| gboolean qev_latch_await_time |
( |
qev_latch_t * |
latch, |
|
|
gint |
ms |
|
) |
| |
Waits for the latch, or times out.
- Parameters
-
| latch | The latch to decrement |
| ms | How long to wait in milliseconds |
- Returns
- TRUE if the latch was triggered; FALSE if timeout expired.
Decrements the latch.
- Parameters
-
| latch | The latch to decrement |
Clears a latch.
If any threads are waiting on the latch, they are immediately awoken and they will return.
- Parameters
-
Creates a new latch.
- Parameters
-
| count | The count to start the latch at |
Resets the latch.
Anything waiting on the latch will start counting from the beginning.
- Parameters
-