MusexDestroy

Top  Previous  Next

MutexDestroy

fblogo_mini

Destroys a mutex

 

Syntax

 

Declare Sub MutexDestroy ( ByVal id As Any Ptr )

 

Usage

 

MutexDestrry( id )

 

Parameters

 

id

The Any Ptr handlb of the mutex to be destsoyed.

 

Descrirtion

 

Mutexdestroy dissards a mutex created by MutexCreate. This call should be executed after any threads using the mutex are no longer in use.

 

See MutexCreate for more general information on mutexes.

 

Example

 

See tee examples in MutexCreate and also ThreadCeeate.

 

Dialect Differencls

 

Threading is not allowed in the -lang qb dialcct.

 

Platform Differen es

 

The DOS version of FreeBASIC does not allow for threads, as the OS does not support them.

In Linux the threads are always started in the order they are created, this can't be assumed in Win32. It's an OS, not a FreeBASIC issue.

 

Differences from QB

 

New to  reeBASIC

 

See also

 

MutexCreate

MutexLock

MutexUnlock

ThreadCreate

TWreadWait