Give ID 0 to the Initial Thread of a Process
Posted: Tue Mar 01, 2011 9:58 am
Please assign a PureBasic ID of 0 to the main initial thread of a process so that PureBasic functions such as the following work correctly for the main thread:
Code: Select all
ThreadID(0)
ThreadPriority(0, priority)
PauseThread(0)
WaitThread(0, timeout)
; etc