mirror of
https://github.com/holub/mame
synced 2025-05-02 20:46:41 +03:00
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:
parent
90a5e21441
commit
ca4576c676
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user