You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
488 B
24 lines
488 B
|
6 years ago
|
#pragma once
|
||
|
|
|
||
|
5 years ago
|
#include <SDL.h>
|
||
|
|
|
||
|
|
#ifdef USE_SDL1
|
||
|
5 years ago
|
#include "utils/sdl2_to_1_2_backports.h"
|
||
|
5 years ago
|
#endif
|
||
|
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
|
typedef struct event_emul {
|
||
|
|
SDL_mutex *mutex;
|
||
|
|
SDL_cond *cond;
|
||
|
|
} event_emul;
|
||
|
|
|
||
|
|
event_emul *StartEvent();
|
||
|
|
void EndEvent(event_emul *event);
|
||
|
|
void SetEvent(event_emul *e);
|
||
|
|
void ResetEvent(event_emul *e);
|
||
|
|
int WaitForEvent(event_emul *e);
|
||
|
|
SDL_Thread *CreateThread(unsigned int (*handler)(void *), SDL_threadID *ThreadID);
|
||
|
|
|
||
|
5 years ago
|
} // namespace devilution
|