Put cothread usage behind a compile-time define, off for now.

Note that the cothreads are still created and exist but they
are never switched to when this is off.
This commit is contained in:
Aaron Giles 2011-06-25 20:22:02 +00:00
parent 90a5e21441
commit ca4576c676

View File

@ -47,6 +47,10 @@
#define __DIEXEC_H__
// set to 1 to execute on cothread instead of directly
#define USE_COTHREADS 0
//**************************************************************************
// CONSTANTS
//**************************************************************************
@ -199,7 +203,11 @@ public:
UINT64 total_cycles() const;
// required operation overrides
#if USE_COTHREADS
void run() { m_cothread.make_active(); }
#else
void run() { execute_run(); }
#endif
protected:
// internal helpers