File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ add_library(${libstack}
28
28
src/plugin.cpp
29
29
)
30
30
set_target_properties (${libstack} PROPERTIES
31
- CXX_STANDARD 14
31
+ CXX_STANDARD 17
32
32
CXX_STANDARD_REQUIRED ON
33
33
)
34
34
target_include_directories (${libstack}
@@ -53,7 +53,7 @@ if(BUILD_TESTING)
53
53
src/stack_test.cpp
54
54
)
55
55
set_target_properties (${test -libstack} PROPERTIES
56
- CXX_STANDARD 14
56
+ CXX_STANDARD 17
57
57
CXX_STANDARD_REQUIRED ON
58
58
)
59
59
target_link_libraries (${test -libstack}
@@ -78,7 +78,7 @@ add_executable(${target}
78
78
src/utility/command .cpp
79
79
)
80
80
set_target_properties (${target} PROPERTIES
81
- CXX_STANDARD 14
81
+ CXX_STANDARD 17
82
82
CXX_STANDARD_REQUIRED ON
83
83
OUTPUT_NAME ${output}
84
84
)
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ void Coordinator::enroll(Registrar& r) {
117
117
switch (q.method ()) {
118
118
case RequestMethod::GET:
119
119
{
120
- std::unique_lock<std::mutex> guard (input_mutex_);
120
+ std::unique_lock guard (input_mutex_);
121
121
r.write (input_queue_);
122
122
break ;
123
123
}
@@ -181,7 +181,7 @@ Duration Coordinator::process(const Sync& sync) {
181
181
// input queue into their respective storage locations. We are responsible
182
182
// for thread safety here!
183
183
auto now = sync .time ();
184
- std::unique_lock<std::mutex> guard (input_mutex_);
184
+ std::unique_lock guard (input_mutex_);
185
185
while (!input_queue_.empty ()) {
186
186
auto tp = std::move (input_queue_.front ());
187
187
input_queue_.pop_front ();
@@ -287,7 +287,7 @@ void Coordinator::queue_trigger(TriggerPtr&& t) {
287
287
// This only really happens if a trigger is an optional trigger.
288
288
return ;
289
289
}
290
- std::unique_lock<std::mutex> guard (input_mutex_);
290
+ std::unique_lock guard (input_mutex_);
291
291
input_queue_.emplace_back (std::move (t));
292
292
}
293
293
You can’t perform that action at this time.
0 commit comments