Win32 threads: Sleep(0)
No God, NO!
Use SwitchToThread to yield (supported since Win XP)
Sleep( 0 ) is a terrible way of yielding. If you're looking to avoid consuming CPU cycles (i.e. lower power usage) prefer Sleep( 1 ) over Sleep( 0 )
Jump to content
Matias Goldberg hasn't added any contacts yet.