Fixed deterministic serialization on Windows.
This commit is contained in:
byuu
2019-10-17 21:42:42 +09:00
parent 9f86a3be26
commit 30d7fa1923
13 changed files with 41 additions and 45 deletions

View File

@@ -16,10 +16,6 @@ static void __stdcall co_thunk(void* coentry) {
((void (*)(void))coentry)();
}
const char* co_method() {
return "fiber";
}
cothread_t co_active() {
if(!co_active_) {
ConvertThreadToFiber(0);
@@ -50,6 +46,10 @@ void co_switch(cothread_t cothread) {
SwitchToFiber(cothread);
}
int co_serializable() {
return 0;
}
#ifdef __cplusplus
}
#endif