Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
readwritelock.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
19
//------------------------------------------------------------------------------
20
#include "
core/config.h
"
21
#if (__WIN32__)
22
#include "
threading/win32/win32readwritelock.h
"
23
namespace
Threading
24
{
25
class
ReadWriteLock :
public
Win32::Win32ReadWriteLock
26
{
27
public
:
28
ReadWriteLock() :
Win32
::Win32ReadWriteLock()
29
{};
30
};
31
}
32
#elif ( __linux__ || __OSX__ || __APPLE__ )
33
#include "
threading/posix/posixreadwritelock.h
"
34
namespace
Threading
35
{
36
class
ReadWriteLock :
public
Posix::PosixReadWriteLock
37
{
38
public
:
39
ReadWriteLock() : Posix::PosixReadWriteLock()
40
{};
41
};
42
}
43
#else
44
#error "Threading::ReadWriteLock not implemented on this platform!"
45
#endif
config.h
Nebula compiler specific defines and configuration.
System::Win32
@ Win32
Definition
systeminfo.h:16
Threading
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition
jobs2.h:16
posixreadwritelock.h
win32readwritelock.h
code
foundation
threading
readwritelock.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.