#include "Lobby.h" Lobby::Lobby() { timerStarted=false; nrUsers=0; timerMutex = CreateMutex( NULL, // default security attributes FALSE, // initially not owned NULL); // unnamed mutex if (timerMutex == NULL) { printf("CreateMutex error: %d\n", GetLastError()); } for(int i=0; i0) return timeLeft; else return 0; } ReleaseMutex(timerMutex); }