Nebula
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/config.h"
13#if (__WIN32__)
15namespace Threading
16{
17class Event : public Win32::Win32Event
18{
19public:
20 Event(bool manualReset=false) : Win32Event(manualReset) {};
21 Event(void* event) : Win32Event(event) {};
22};
23}
24#elif __linux__
26namespace Threading
27{
28class Event : public Linux::LinuxEvent
29{
30public:
31 Event(bool manualReset=false) : LinuxEvent(manualReset) {};
32};
33}
34#elif ( __OSX__ || __APPLE__ )
36namespace Threading
37{
38class Event : public Posix::PosixEvent
39{
40public:
41 Event(bool manualReset=false) : PosixEvent(manualReset) {};
42};
43}
44#else
45#error "Threading::Event not implemented on this platform!"
46#endif
47
48namespace Threading
49{
51{
52public:
54};
55}
56//------------------------------------------------------------------------------
Linux implementation of Event.
Definition linuxevent.h:18
EventWithManualReset()
Definition event.h:53
Win32 implementation of an event synchronization object.
Definition win32event.h:18
Nebula compiler specific defines and configuration.
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition jobs2.h:16