Zero  0.1.0
Static Public Attributes | List of all members
timeout_t Struct Reference

Special values for timeouts (int-values). More...

#include <timeout.h>

Static Public Attributes

static constexpr int WAIT_IMMEDIATE = 0
 
static constexpr int WAIT_FOREVER = -1
 
static constexpr int WAIT_SPECIFIED_BY_THREAD = -4
 
static constexpr int WAIT_SPECIFIED_BY_XCT = -5
 
static constexpr int WAIT_NOT_USED = -6
 

Detailed Description

Special values for timeouts (int-values).

sthreads package recognizes 2 WAIT_* values:

Parameters
WAIT_IMMEDIATEDon't wait.
WAIT_FOREVERMay block indefinitely.
WAIT_SPECIFIED_BY_THREADPick up a timeout from the smthread.
WAIT_SPECIFIED_BY_XCTPick up a timeout from the transaction.
WAIT_NOT_USEDIndicates the negative number used by sthreads.
See also
int

Member Data Documentation

§ 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: