possibly controversial commit: remove all windows sources, keeping only the windows cmake so that we can generate an sln to edit the code

This commit is contained in:
DarthArgus
2016-01-27 15:22:22 -06:00
parent 3dccead5d5
commit 48ba7961eb
201 changed files with 0 additions and 21403 deletions
@@ -1,37 +0,0 @@
// ======================================================================
//
// Semaphore.cpp
// Acy Stapp
//
// Copyright 6/19/2001 Sony Online Entertainment
//
// ======================================================================
#include "sharedSynchronization/FirstSharedSynchronization.h"
#include "sharedSynchronization/Semaphore.h"
Semaphore::Semaphore(int count, int initial)
{
handle = CreateSemaphore(0, initial, count, 0);
}
Semaphore::~Semaphore()
{
CloseHandle(handle);
}
void Semaphore::wait()
{
WaitForSingleObject(handle, INFINITE);
}
void Semaphore::wait(unsigned int maxDurationMs)
{
WaitForSingleObject(handle, maxDurationMs);
}
void Semaphore::signal(int count)
{
ReleaseSemaphore(handle, count, 0);
}