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.
23 lines
488 B
23 lines
488 B
#pragma once |
|
|
|
#include <SDL.h> |
|
|
|
#ifdef USE_SDL1 |
|
#include "utils/sdl2_to_1_2_backports.h" |
|
#endif |
|
|
|
namespace devilution { |
|
|
|
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); |
|
|
|
} // namespace devilution
|
|
|