A set of wait objects.
More...
#include <pylon/WaitObjects.h>
unsigned Pylon::WaitObjects::Add |
( |
const WaitObject & |
o | ) |
|
Add an object to wait on and return the index of the added object.
Calling Add from another thread during wait operations will cause undefined behaviour.
void Pylon::WaitObjects::RemoveAll |
( |
void |
| ) |
|
Removes all added wait objects.
Calling RemoveAll from another thread during wait operations will cause undefined behaviour.
bool Pylon::WaitObjects::WaitForAll |
( |
unsigned |
timeout | ) |
const |
Wait for all objects to get signaled.
- Parameters
-
timeout | maximum wait period in milliseconds |
- Returns
- true if all objects were signaled
EWaitExResult Pylon::WaitObjects::WaitForAllEx |
( |
unsigned |
timeout, |
|
|
bool |
bAlertable |
|
) |
| const |
Wait for all objects to get signaled.
- Parameters
-
bAlertable | If true, the wait operation can be interrupted (Windows: APC; UNIX: signal) |
timeout | maximum wait period in milliseconds |
bool Pylon::WaitObjects::WaitForAny |
( |
unsigned |
timeout, |
|
|
unsigned * |
pIndex = NULL |
|
) |
| const |
Wait for any one object to get signaled.
- Parameters
-
timeout | maximum wait period in milliseconds |
*pIndex | (optional) pointer to buffer taking the index of the signaled object |
- Returns
- true if any object was signaled.
EWaitExResult Pylon::WaitObjects::WaitForAnyEx |
( |
unsigned |
timeout, |
|
|
bool |
bAlertable, |
|
|
unsigned * |
pIndex = NULL |
|
) |
| const |
Wait for any one object to get signaled.
- Parameters
-
timeout | maximum wait period in milliseconds |
bAlertable | If true, the wait operation can be interrupted (Windows: APC; UNIX: signal) |
*pIndex | (optional) pointer to buffer taking the index of the signaled object |
The documentation for this class was generated from the following file: