Zero  0.1.0
timeout.h
Go to the documentation of this file.
1 #ifndef __TIMEOUT_T
2 #define __TIMEOUT_T
3 
26 struct timeout_t {
27  static constexpr int WAIT_IMMEDIATE = 0;
28  static constexpr int WAIT_FOREVER = -1;
29  static constexpr int WAIT_SPECIFIED_BY_THREAD = -4; // used by lock manager
30  static constexpr int WAIT_SPECIFIED_BY_XCT = -5; // used by lock manager
31  // CS: I guess the NOT_USED value is only for threads that never acquire
32  // any locks? And neither latches?
33  static constexpr int WAIT_NOT_USED = -6; // indicates last negative number used by sthreads
34 };
35 
36 #endif // __TIMEOUT_T
static constexpr int WAIT_IMMEDIATE
Definition: timeout.h:27
static constexpr int WAIT_FOREVER
Definition: timeout.h:28
static constexpr int WAIT_SPECIFIED_BY_XCT
Definition: timeout.h:30
Special values for timeouts (int-values).
Definition: timeout.h:26
static constexpr int WAIT_SPECIFIED_BY_THREAD
Definition: timeout.h:29
static constexpr int WAIT_NOT_USED
Definition: timeout.h:33