sthread_base_t Class Reference

Inherits w_base_t.

Inherited by sthread_init_t.

Inheritance diagram for sthread_base_t:

Inheritance graph
[legend]
Collaboration diagram for sthread_base_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for sthreads. See timeout_in_ms, timeout_t.

Definition at line 124 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...


Member Typedef Documentation

int4_t sthread_base_t::timeout_in_ms

Timeout in milliseconds if > 0.

sthread_t blocking methods take a timeout in milliseconds. If the value is < 0, then it's expected to be a member of the enumeration type timeout_t.

See also:
timeout_t

Definition at line 175 of file sthread.h.


Member Enumeration Documentation

enum sthread_base_t::timeout_t

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.

See also:
timeout_in_ms

Definition at line 158 of file sthread.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 2 15:14:14 2012 for Shore Storage Manager by  doxygen 1.4.7