Barracuda Application Server C/C++ Reference
Thread Struct Reference

Detailed Description

A simple thread class.

The thread class makes it possible to design a platform independent system using threads.

#include <ThreadLib.h>

Inheritance diagram for Thread:

Public Member Functions

 Thread (Thread_Run r, ThreadPriority priority, int stackSize)
 Create a thread. More...
void start ()
 Start the thread.

Static Public Member Functions

static void sleep (unsigned int milliseconds)
 Suspend the current thread for n milliseconds.

Constructor & Destructor Documentation

◆ Thread()

Thread::Thread ( Thread_Run  r,
ThreadPriority  priority,
int  stackSize 

Create a thread.

ra pointer to the thread run method.
prioritythe thread priority.
stackSizethe thread stack size.