No more SleepCurrentThreads in Command Processor. Some Fifo cleanup.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3822 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Nolan Check
2009-07-17 22:57:02 +00:00
parent 664f017fec
commit a5d65b3b22
8 changed files with 47 additions and 55 deletions

View File

@ -174,6 +174,19 @@ private:
void InitThreading();
void SleepCurrentThread(int ms);
// YieldCPU: Use this function during a spin-wait to make the current thread
// relax while another thread is working.
// If you find yourself calling this function, please consider using an event-
// based design instead.
inline void YieldCPU()
{
#ifdef _WIN32
YieldProcessor();
#else
// TODO: Implement for other platforms.
#endif
}
void SetCurrentThreadName(const char *name);
} // namespace Common