All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SYS_SequentialThreadIndex Class Reference

#include <SYS_SequentialThreadIndex.h>

Public Types

enum  { FIRST_INDEX = 1 }

Static Public Member Functions

static int get ()
static int next ()

Detailed Description

Helper class to ensure each thread gets allocated a sequential index that can be used to uniquely associate a thread.

Definition at line 26 of file SYS_SequentialThreadIndex.h.

Member Enumeration Documentation

anonymous enum

Definition at line 29 of file SYS_SequentialThreadIndex.h.

Member Function Documentation

static int SYS_SequentialThreadIndex::get ( )

Returns the sequential thread index for the current thread. The first index is always the value of FIRST_INDEX, usually the main thread.

int SYS_SequentialThreadIndex::next ( )

Returns the index that will be assigned to the next thread that calls get() for the first time.

Definition at line 62 of file SYS_SequentialThreadIndex.h.

The documentation for this class was generated from the following file: