Special values for timeouts (int-values).
More...
#include <timeout.h>
Special values for timeouts (int-values).
sthreads package recognizes 2 WAIT_* values:
== WAIT_IMMEDIATE
!= WAIT_IMMEDIATE If it's not WAIT_IMMEDIATE, it's assumed to be a positive integer (milliseconds) used for the select timeout.
The user of the thread (e.g., sm) had better convert timeout that are negative values (WAIT_* below) to something >= 0 before calling block().
All other WAIT_* values other than WAIT_IMMEDIATE are handled by sm layer.
- Parameters
-
| WAIT_IMMEDIATE | Don't wait. |
| WAIT_FOREVER | May block indefinitely. |
| WAIT_SPECIFIED_BY_THREAD | Pick up a timeout from the smthread. |
| WAIT_SPECIFIED_BY_XCT | Pick up a timeout from the transaction. |
| WAIT_NOT_USED | Indicates the negative number used by sthreads. |
- See also
- int
§ WAIT_FOREVER
| constexpr int timeout_t::WAIT_FOREVER = -1 |
|
static |
§ WAIT_IMMEDIATE
| constexpr int timeout_t::WAIT_IMMEDIATE = 0 |
|
static |
§ WAIT_NOT_USED
| constexpr int timeout_t::WAIT_NOT_USED = -6 |
|
static |
§ WAIT_SPECIFIED_BY_THREAD
| constexpr int timeout_t::WAIT_SPECIFIED_BY_THREAD = -4 |
|
static |
§ WAIT_SPECIFIED_BY_XCT
| constexpr int timeout_t::WAIT_SPECIFIED_BY_XCT = -5 |
|
static |
The documentation for this struct was generated from the following file: