mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
adress #501 - thread oversight.
as discussed in the followup conversation to #500, seems like there's been a bit of command-drift since the writeup we were referencing to attempt consistentcy, so back to treating mac and nix differently on this front, looks like
This commit is contained in:
parent
18a7e31991
commit
0c23599023
|
|
@ -133,9 +133,15 @@ void tc_spinloop()
|
|||
// Pause would do nothing on the Xbox. Threads are not scheduled.
|
||||
#elif defined( _WIN64 )
|
||||
YieldProcessor( );
|
||||
#elif defined( __APPLE__ )||(__linux__)
|
||||
#elif defined( __APPLE__ )
|
||||
pthread_yield_np();
|
||||
#else
|
||||
#elif defined(__linux__)
|
||||
#if defined(_POSIX_PRIORITY_SCHEDULING)
|
||||
sched_yield();
|
||||
#else
|
||||
asm("pause");
|
||||
#endif
|
||||
#elif
|
||||
__asm { pause };
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue