Thread Struct Reference

Main Thread Data Structure. More...

Collaboration diagram for Thread:
[legend]

List of all members.

Public Attributes

ThreadID id
 Thread ID (ID = 0 for the main thread).
char stack [maxStackSize]
 Thread's Stack of size 'maxStackSize'.
struct Thread::Context context
 Stores the saved context of the thread.
uInt32 eip
 32-bit Instruction Pointer
uInt32 esp
 32-bit Stack Pointer
uInt32 eflags
 32-bit Status Flags

Classes

struct  Context
 Thread Context Data Structure. More...


Detailed Description

This data structure represents a thread. It stores the following information :
  1. Thread ID
  2. Thread's Stack (for threads other than the main thread)
  3. Thread's Context (register values)
Note:
CS and SS registers remain same across threads, so there is no need to save them in the thread's context

Definition at line 46 of file myThread.cpp.


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

Generated on Fri Sep 18 20:32:22 2009 for "MyThread Library" by  doxygen 1.5.5