Inherited by sthread_init_t.
Inheritance diagram for sthread_base_t:
Definition at line 122 of file sthread.h.
Public Types | |
typedef int4_t | timeout_in_ms |
Timeout in milliseconds if > 0. | |
enum | timeout_t |
Special values for timeout_in_ms. More... |
Special values for timeout_in_ms.
sthreads package recognizes 2 WAIT_* values: == WAIT_IMMEDIATE and != WAIT_IMMEDIATE.
If it's not WAIT_IMMEDIATE, it's assumed to be a positive integer (milliseconds) used for the select timeout. WAIT_IMMEDIATE: no wait WAIT_FOREVER: may block indefinitely 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: WAIT_SPECIFIED_BY_THREAD: pick up a timeout_in_ms from the smthread. WAIT_SPECIFIED_BY_XCT: pick up a timeout_in_ms from the transaction. Anything else: not legitimate.