FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Disruptor-cpp/Disruptor.TestTools/ResetEvent.h at master · githubCode3a/Disruptor-cpp · GitHub
githubCode3a
/
Disruptor-cpp
Public
forked from
Abc-Arbitrage/Disruptor-cpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Disruptor-cpp
/
Disruptor.TestTools
/
ResetEvent.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (28 loc) · 801 Bytes
Breadcrumbs
Disruptor-cpp
/
Disruptor.TestTools
/
ResetEvent.h
Copy path
File metadata and controls
40 lines (28 loc) · 801 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
pragma
once
#
include
<
mutex
>
#
include
<
condition_variable
>
#
include
"
Disruptor/ClockConfig.h
"
namespace
Disruptor
{
namespace
Tests
{
class
ResetEvent
{
public:
explicit
ResetEvent
(
bool
signaled =
false
);
virtual
~ResetEvent
() =
default
;
ResetEvent
(
const
ResetEvent&) =
delete
;
protected:
virtual
bool
isSet
()
const
;
virtual
void
set
(
bool
ensureWaitIsTriggered =
false
);
virtual
void
reset
();
virtual
bool
wait
(ClockConfig::Duration timeDuration);
private:
bool
internalWait
(ClockConfig::Duration timeDuration);
bool
m_signaled;
mutable
std::mutex m_mutex;
std::condition_variable m_conditionVariable;
int
m_waitCount;
};
}
//
namespace Tests
}
//
namespace Disruptor
Back
|
FazBrowse Home
|
New Git URL