Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
Fixes the issue introduced by c1a0ebb (Fix use of uninitialised variable
in class Event) causing Windows builds to fail
  • Loading branch information
Zeno- committed May 2, 2016
1 parent 8fe753c commit c92cff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threading/event.cpp
Expand Up @@ -26,14 +26,14 @@ DEALINGS IN THE SOFTWARE.
#include "threading/event.h"

Event::Event()
: notified(false)
{
#if __cplusplus < 201103L
# ifdef _WIN32
event = CreateEvent(NULL, false, false, NULL);
# else
pthread_cond_init(&cv, NULL);
pthread_mutex_init(&mutex, NULL);
notified = false;
# endif
#endif
}
Expand Down

0 comments on commit c92cff5

Please sign in to comment.