Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageThreads.cpp File Reference

#include "global.h"
#include "RageThreads.h"
#include "RageTimer.h"
#include "RageLog.h"
#include "RageUtil.h"
#include <cerrno>
#include <set>
#include "arch/Threads/Threads.h"
#include "arch/Dialog/Dialog.h"

Classes

struct  ThreadSlot
struct  ThreadSlot::ThreadCheckpoint
struct  SetupMainThread

Defines

#define MAX_THREADS   128
#define CHECKPOINT_COUNT   5

Functions

int FindEmptyThreadSlot ()
void InitThreads ()
ThreadSlotGetThreadSlotFromID (uint64_t iID)
ThreadSlotGetCurThreadSlot ()
ThreadSlotGetUnknownThreadSlot ()
const char * GetCheckpointLog (int slotno, int lineno)

Variables

ThreadSlot g_ThreadSlots [MAX_THREADS]
ThreadSlotg_pUnknownThreadSlot = NULL
RageMutex g_ThreadSlotsLock ("ThreadSlots")
SetupMainThread SetupMainThreadObj
bool g_LogCheckpoints = false

Define Documentation

#define CHECKPOINT_COUNT   5
 

#define MAX_THREADS   128
 


Function Documentation

int FindEmptyThreadSlot  )  [static]
 

const char* GetCheckpointLog int  slotno,
int  lineno
[static]
 

ThreadSlot* GetCurThreadSlot  )  [static]
 

ThreadSlot* GetThreadSlotFromID uint64_t  iID  )  [static]
 

ThreadSlot* GetUnknownThreadSlot  )  [static]
 

void InitThreads  )  [static]
 


Variable Documentation

bool g_LogCheckpoints = false [static]
 

struct ThreadSlot* g_pUnknownThreadSlot = NULL
 

ThreadSlot g_ThreadSlots[MAX_THREADS] [static]
 

RageMutex g_ThreadSlotsLock("ThreadSlots") [static]
 

struct SetupMainThread SetupMainThreadObj [static]
 


Generated on Thu Jan 27 20:57:58 2005 for StepMania by doxygen 1.3.7