mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-16 10:44:31 +02:00
v111.10
Fixed deterministic serialization on Windows.
This commit is contained in:
@@ -26,10 +26,6 @@ extern "C" {
|
||||
static thread_local ucontext_t co_primary;
|
||||
static thread_local ucontext_t* co_running = 0;
|
||||
|
||||
const char* co_module() {
|
||||
return "ucontext";
|
||||
}
|
||||
|
||||
cothread_t co_active() {
|
||||
if(!co_running) co_running = &co_primary;
|
||||
return (cothread_t)co_running;
|
||||
@@ -81,6 +77,10 @@ void co_switch(cothread_t cothread) {
|
||||
swapcontext(old_thread, co_running);
|
||||
}
|
||||
|
||||
int co_serializable() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user