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
Event
(
void
* event) : Win32Event(event) {};
22
};
23
}
24
#elif __linux__
25
#include "
threading/linux/linuxevent.h
"
26
namespace
Threading
27
{
28
class
Event
:
public
Linux::LinuxEvent
29
{
30
public
:
31
Event
(
bool
manualReset=
false
) : LinuxEvent(manualReset) {};
32
};
33
}
34
#elif ( __OSX__ || __APPLE__ )
35
#include "
threading/posix/posixevent.h
"
36
namespace
Threading
37
{
38
class
Event :
public
Posix::PosixEvent
39
{
40
public
:
41
Event(
bool
manualReset=
false
) : PosixEvent(manualReset) {};
42
};
43
}
44
#else
45
#error "Threading::Event not implemented on this platform!"
46
#endif
47
48
namespace
Threading
49
{
50
class
EventWithManualReset
:
public
Event
51
{
52
public
:
53
EventWithManualReset
() :
Event
(true) {};
54
};
55
}
56
//------------------------------------------------------------------------------
Linux::LinuxEvent
Linux implementation of Event.
Definition
linuxevent.h:18
Event
Threading::EventWithManualReset::EventWithManualReset
EventWithManualReset()
Definition
event.h:53
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.