#include <mdl.h>
Public Types |
enum | enum_wait_status {
EMPTY = 0,
GRANTED,
VICTIM,
TIMEOUT,
KILLED
} |
Detailed Description
A reliable way to wait on an MDL lock.
Definition at line 687 of file mdl.h.
Constructor & Destructor Documentation
Construct an empty wait slot.
Definition at line 1215 of file mdl.cc.
Destroy system resources.
Definition at line 1225 of file mdl.cc.
Member Function Documentation
MDL_wait::enum_wait_status MDL_wait::get_status |
( |
| ) |
|
Query the current value of the wait slot.
Definition at line 1254 of file mdl.cc.
void MDL_wait::reset_status |
( |
| ) |
|
Clear the current value of the wait slot.
Definition at line 1266 of file mdl.cc.
bool MDL_wait::set_status |
( |
enum_wait_status |
status_arg | ) |
|
Set the status unless it's already set. Return FALSE if set, TRUE otherwise.
Definition at line 1237 of file mdl.cc.
Wait for the status to be assigned to this wait slot.
- Parameters
-
owner | MDL context owner. |
abs_timeout | Absolute time after which waiting should stop. |
set_status_on_timeout | TRUE - If in case of timeout waiting context should close the wait slot by sending TIMEOUT to itself. FALSE - Otherwise. |
wait_state_name | Thread state name to be set for duration of wait. |
- Returns
- Signal posted.
Definition at line 1289 of file mdl.cc.
The documentation for this class was generated from the following files: