Give ID 0 to the Initial Thread of a Process

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Give ID 0 to the Initial Thread of a Process

Post by akj »

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
Anthony Jordan