Nebula
Toggle main menu visibility
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__)
14
#include "
threading/win32/win32event.h
"
15
namespace
Threading
16
{
17
class
Event
:
public
Win32::Win32Event
18
{
19
public
:
20
Event
(
bool
manualReset=
false
) : Win32Event(manualReset) {};
21
};
22
}
23
#elif __linux__
24
#include "
threading/linux/linuxevent.h
"
25
namespace
Threading
26
{
27
class
Event
:
public
Linux::LinuxEvent
28
{
29
public
:
30
Event
(
bool
manualReset=
false
) : LinuxEvent(manualReset) {};
31
};
32
}
33
#elif ( __OSX__ || __APPLE__ )
34
#include "
threading/posix/posixevent.h
"
35
namespace
Threading
36
{
37
class
Event :
public
Posix::PosixEvent
38
{
39
public
:
40
Event(
bool
manualReset=
false
) : PosixEvent(manualReset) {};
41
};
42
}
43
#else
44
#error "Threading::Event not implemented on this platform!"
45
#endif
46
47
namespace
Threading
48
{
49
class
EventWithManualReset
:
public
Event
50
{
51
public
:
52
EventWithManualReset
() :
Event
(true) {};
53
};
54
}
55
//------------------------------------------------------------------------------
Linux::LinuxEvent
Linux implementation of Event.
Definition
linuxevent.h:18
Event
Threading::EventWithManualReset::EventWithManualReset
EventWithManualReset()
Definition
event.h:52
Win32::Win32Event
Win32 implementation of an event synchronization object.
Definition
win32event.h:18
config.h
Nebula compiler specific defines and configuration.
linuxevent.h
Threading
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition
jobs2.h:16
posixevent.h
win32event.h
code
foundation
threading
event.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.