Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from martincp/master
Browse files Browse the repository at this point in the history
Fix race condition issue with critical regions by making entering blo…
  • Loading branch information
OlehKulykov committed Jun 2, 2016
2 parents 1f4e3c1 + ff39486 commit a969918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/REThreadingPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace FayeCpp {
#if defined(__RE_THREADING_PTHREAD__)
if (_m) pthread_mutex_lock((pthread_mutex_t *)_m);
#elif defined(__RE_THREADING_WINDOWS__)
if (_m) TryEnterCriticalSection((LPCRITICAL_SECTION)_m);
if (_m) EnterCriticalSection((LPCRITICAL_SECTION)_m);
#endif
}

Expand Down

0 comments on commit a969918

Please sign in to comment.