xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

GetCurrentThread()

Retrieves the handle of the current thread.

Syntax

GetCurrentThread() --> pThreadHandle

Return

The function returns the handle of the thread that executes GetCurrentThread().

Description

Function GetCurrentThread() is used to retrieve the thread handle of the current thread. Thread handles are created by function StartThread(). They are required for other multi-threading functions like JoinThread() or StopThread().

Info

See also:GetThreadID(), GetSystemThreadID(), HB_MutexCreate(), IsSameThread(), JoinThread(), StopThread(), ThreadSleep()
Category: Multi-threading functions , xHarbour extensions
Source:vm\thread.c
LIB:xhbmt.lib
DLL:xhbmtdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe