mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove duplicate semaphore
This commit is contained in:
parent
a58895291c
commit
03399994b5
|
@ -8,16 +8,6 @@
|
|||
# if defined(CONF_PLATFORM_MACOSX)
|
||||
#include <objc/objc-runtime.h>
|
||||
|
||||
class semaphore
|
||||
{
|
||||
SDL_sem *sem;
|
||||
public:
|
||||
semaphore() { sem = SDL_CreateSemaphore(0); }
|
||||
~semaphore() { SDL_DestroySemaphore(sem); }
|
||||
void wait() { SDL_SemWait(sem); }
|
||||
void signal() { SDL_SemPost(sem); }
|
||||
};
|
||||
|
||||
class CAutoreleasePool
|
||||
{
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue