latest SDK
This commit is contained in:
23
pfc/event.h
Normal file
23
pfc/event.h
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace pfc {
|
||||
#ifdef _WIN32
|
||||
|
||||
typedef HANDLE eventHandle_t;
|
||||
|
||||
static const eventHandle_t eventInvalid = NULL;
|
||||
|
||||
class event : public win32_event {
|
||||
public:
|
||||
event() { create(true, false); }
|
||||
|
||||
HANDLE get_handle() const {return win32_event::get();}
|
||||
};
|
||||
#else
|
||||
|
||||
typedef int eventHandle_t;
|
||||
|
||||
static const eventHandle_t eventInvalid = -1;
|
||||
|
||||
typedef nix_event event;
|
||||
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user