# cThread Class Reference
[Timers]

cThread provides a class to manage threads. More...

`#include <CThread.h>`

List of all members.

## Public Member Functions
| cThread ()
| Constructor of cThread.
| ~cThread ()
| Destructor of cThread.
void | set (void(*a_function)(void), CThreadPriority a_level)
| Set the thread parameters.
void | setPriority (CThreadPriority a_level)
| Set the thread priority level.
CThreadPriority | getPriority ()
| Get the current thread priority level.
## Protected Attributes
DWORD | m_threadId
| Thread handle.
void * | m_function
| Pointer to thread function.
CThreadPriority | m_priorityLevel
| Thread priority level.

## Detailed Description

cThread provides a class to manage threads.

## Member Function Documentation

void cThread::set | ( | void(*)(void) | a_function,
|  | CThreadPriority | a_level |
| ) |  |  |

Set the thread parameters.

Creates a thread to execute within the address space of the calling process. Parameters include a pointer to the function and its priority level.

Parameters:

  | a_function | Pointer to thread function
  | a_level | Priority level of thread.

void cThread::setPriority | ( | CThreadPriority | a_level | ) |

Set the thread priority level.

Adjust the priority level of the thread.

Parameters:

  | a_level | Priority level of the thread

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

- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/timers/CThread.h
- D:/CHAI3D/build-2-0-0/2.0.0/win32/src/timers/CThread.cpp

CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.