Skip to content

Commit 783af50

Browse files
committed
make msvc happy
bumped version to 0.2.0
1 parent 47f581f commit 783af50

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_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

55
message(STATUS "Build oryx-crt-cpp: ${PROJECT_VERSION}")
66

include/oryx/periodic_scheduler.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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_};

0 commit comments

Comments
 (0)