/home/gomez/Documents/workspaces/treqs/treqs/src/ThreadObject/Thread.h File Reference

#include <stdio.h>
#include <malloc.h>
#include <memory.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include "MutexClass.h"
#include "EventClass.h"
Include dependency graph for Thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CTask
class  CThread

Defines

#define false   false
#define QUE_SIZE   100
#define DEFAULT_STACK_SIZE   0
#define NO_ERRORS   0
#define MUTEX_CREATION   0x01
#define EVENT_CREATION   0x02
#define THREAD_CREATION   0x04
#define UNKNOWN   0x08
#define ILLEGAL_USE_OF_EVENT   0x10
#define MEMORY_FAULT   0x20

Typedefs

typedef bool BOOL
typedef long DWORD
typedef void * LPVOID
typedef DWORD ThreadId_t

Enumerations

enum  ThreadState_t {
  ThreadStateBusy, ThreadStateWaiting, ThreadStateDown, ThreadStateShuttingDown,
  ThreadStateFault
}
enum  ThreadType_t { ThreadTypeEventDriven, ThreadTypeIntervalDriven }
enum  TaskStatus_t { TaskStatusNotSubmitted, TaskStatusWaitingOnQueue, TaskStatusBeingProcessed, TaskStatusCompleted }

Functions

void Sleep (unsigned int mseconds)

Define Documentation

#define DEFAULT_STACK_SIZE   0
#define EVENT_CREATION   0x02
#define false   false
#define ILLEGAL_USE_OF_EVENT   0x10
#define MEMORY_FAULT   0x20
#define MUTEX_CREATION   0x01
#define NO_ERRORS   0
#define QUE_SIZE   100
#define THREAD_CREATION   0x04
#define UNKNOWN   0x08

Typedef Documentation

typedef bool BOOL
typedef long DWORD
typedef void* LPVOID
typedef DWORD ThreadId_t

Enumeration Type Documentation

Enumerator:
TaskStatusNotSubmitted 
TaskStatusWaitingOnQueue 
TaskStatusBeingProcessed 
TaskStatusCompleted 
Enumerator:
ThreadStateBusy 
ThreadStateWaiting 
ThreadStateDown 
ThreadStateShuttingDown 
ThreadStateFault 
Enumerator:
ThreadTypeEventDriven 
ThreadTypeIntervalDriven 

Function Documentation

void Sleep ( unsigned int  mseconds  ) 

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1