GetCurrentThreadId
The GetCurrentThreadId function retrieves the thread identifier of the calling thread.
DWORD GetCurrentThreadId(void);
Parameters
This function has no parameters.
Return Values
The return value is the thread identifier of the calling thread.
Remarks
Until the thread terminates, the thread identifier uniquely identifies the thread throughout the system.
Example Code
For an example, see Using Thread Local Storage.
Requirements
Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, and Windows 95.
Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
See Also
Processes and Threads Overview, Process and Thread Functions, GetCurrentThread, OpenThread
'Development > C/C++' 카테고리의 다른 글
오픈소스 Memory pool 성능 비교 (0) | 2011.08.13 |
---|---|
엑셀 provider 및 엑셀 파일 DB처럼 활용하기 (0) | 2011.08.13 |
소켓 함수 처리시간 측정 (0) | 2011.08.13 |
버퍼 오버플로우(buffer overflow) (0) | 2011.08.13 |
멀티바이트와 유니코드 차이점 및 컴파일러 차이점 (0) | 2011.08.13 |