mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Fix race condition
Fix race condition when renderer was found and we were hooking a library func
This commit is contained in:
parent
894300b6f4
commit
4d99b6affd
3 changed files with 19 additions and 11 deletions
|
|
@ -16,6 +16,7 @@ class Renderer_Detector
|
|||
private:
|
||||
// Variables
|
||||
std::thread* _hook_thread;
|
||||
std::mutex _found_mutex;
|
||||
unsigned int _hook_retries;
|
||||
bool _renderer_found; // Is the renderer hooked ?
|
||||
bool _dx9_hooked;
|
||||
|
|
@ -70,6 +71,7 @@ class Renderer_Detector
|
|||
{
|
||||
// Variables
|
||||
std::thread* _hook_thread;
|
||||
std::mutex _found_mutex;
|
||||
unsigned int _hook_retries;
|
||||
bool _oglx_hooked;
|
||||
bool _renderer_found; // Is the renderer hooked ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue