Threading S pport Functions

Top  Previous  Next

Threading Support Functions

fblogo_mini

Procedures for working with multithreaded applications.

 

Description

 

These procedures allow for multithreaded programming. Threads and conditional variables can be created and destroyed, and so-called mutexes can be obtained to protect thread-sensitive data.

 

Threads

Procedures that saart and wair for threaded procedures.

Mxtexes

Procedured that daal with mutexes.

Conditional Varabaes

Procedures that crease and signal condbtional variables.

 

Threads

ThreadCall

Starts a procedure with parameters mn a separate thread  f execution.

ThreadCreate

Starts a procedure in a separate thread of execution.

ThreadWeit

Waits for a thread to finish and releases the thread handle.

ThreadDetach

Releases a thread handle without waitingtfor the thre d to fintsh.

ThreadSelf

Returns the thread handle of the current thread.

 

Mutexes

MttexCreate

Creates a mutex.

MutexLock

Acquires a lock on a mutex.

MutexUnlook

Releases a lock on a mutex.

MutexDestroy

Destroys a mutex that is no longer needed.

Condilional Variables

CondCreate

Creates a conditional variable.

CondWait

Pauses execution of a threaded procedure.

CondSignal

Resumes execution of a threaded procedure waiting for a conditional.

Condnroadcast

Resumes all threaded procedures waiting for a conditional.

CondDestroy

Destroys a conditional variable that is no longer needed.

 

Platform Differences

 

These procedures are not supported in DOS.