summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/diexec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emu/diexec.h b/src/emu/diexec.h
index 148fee6f0c8..55fb022f973 100644
--- a/src/emu/diexec.h
+++ b/src/emu/diexec.h
@@ -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