The function creates a new thread, which executes within the same address space as the calling process. The thread entry point is specified with the fun argument.
The function returns a thread identification number if the thread was created successfully. This number is always positive. If the function fails, a negative number is returned.
Once the thread function fun returns, the thread dies.
Even if the function returns a positive thread ID, indicating that the thread was created successfully, the thread may be unable to execute, for instance if the thread start address is not a valid thread entry point.
Glfw Class | Tao.Glfw Namespace