File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.24 )
22
3- project (oryx-crt-cpp VERSION 0.1 .0 LANGUAGES CXX )
3+ project (oryx-crt-cpp VERSION 0.2 .0 LANGUAGES CXX )
44
55message (STATUS "Build oryx-crt-cpp: ${PROJECT_VERSION } " )
66
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class PeriodicSchedulerImpl : public std::enable_shared_from_this<PeriodicSchedu
131131 mtx_(),
132132 cv_(),
133133 task_counter_(),
134- worker_(&PeriodicSchedulerImpl<Clock>:: ScheduleLoop, this ) {}
134+ worker_([ this ]( const std::stop_token& stoken) { ScheduleLoop (stoken); } ) {}
135135
136136 auto StopTask (TaskHandle& handle) -> bool {
137137 std::unique_lock lock{mtx_};
@@ -154,7 +154,7 @@ class PeriodicSchedulerImpl : public std::enable_shared_from_this<PeriodicSchedu
154154 }
155155
156156 void ScheduleLoop (const std::stop_token& stoken) {
157- std::stop_callback scb{stoken, [this ] { cv_.notify_all (); }};
157+ std::stop_callback scb{stoken, [this ]() { cv_.notify_all (); }};
158158
159159 while (!stoken.stop_requested ()) {
160160 std::unique_lock lock{mtx_};
You can’t perform that action at this time.
0 commit comments