mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
Revert "- Made VMFrameStack GlobalVMStack a non thread_local variable for MinGW since that helps to prevent crashes on exit."
This reverts commit 429bd5d843
.
This commit is contained in:
parent
b78978fa7b
commit
2bf731cfa9
2 changed files with 0 additions and 8 deletions
|
@ -149,11 +149,7 @@ VMExec_Checked::Exec
|
||||||
// Note: If the VM is being used in multiple threads, this should be declared as thread_local.
|
// Note: If the VM is being used in multiple threads, this should be declared as thread_local.
|
||||||
// ZDoom doesn't need this at the moment so this is disabled.
|
// ZDoom doesn't need this at the moment so this is disabled.
|
||||||
|
|
||||||
#ifndef __MINGW32__
|
|
||||||
thread_local VMFrameStack GlobalVMStack;
|
thread_local VMFrameStack GlobalVMStack;
|
||||||
#else
|
|
||||||
VMFrameStack GlobalVMStack;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -437,11 +437,7 @@ void VMFillParams(VMValue *params, VMFrame *callee, int numparam);
|
||||||
void VMDumpConstants(FILE *out, const VMScriptFunction *func);
|
void VMDumpConstants(FILE *out, const VMScriptFunction *func);
|
||||||
void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction *func);
|
void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction *func);
|
||||||
|
|
||||||
#ifndef __MINGW32__
|
|
||||||
extern thread_local VMFrameStack GlobalVMStack;
|
extern thread_local VMFrameStack GlobalVMStack;
|
||||||
#else
|
|
||||||
extern VMFrameStack GlobalVMStack;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef std::pair<const class PType *, unsigned> FTypeAndOffset;
|
typedef std::pair<const class PType *, unsigned> FTypeAndOffset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue