summaryrefslogtreecommitdiff
path: root/modules/async/c++/async.cpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-01 13:24:09 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-09-01 13:24:09 +0200
commit55f9635f8818614d1c0e5f2dbfc6eb3de18a7107 (patch)
treeb716810726e9511fc07699e7072092eced2ecd7c /modules/async/c++/async.cpp
parent636abd840ef43ff5bca30f963d6d1cf28f016cf7 (diff)
Playing around with dependencies.
I need to think about the potential async codec behaviours
Diffstat (limited to 'modules/async/c++/async.cpp')
-rw-r--r--modules/async/c++/async.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/async/c++/async.cpp b/modules/async/c++/async.cpp
index 742d43c..ea30cda 100644
--- a/modules/async/c++/async.cpp
+++ b/modules/async/c++/async.cpp
@@ -259,17 +259,17 @@ bool event_loop::turn() {
return true;
}
-bool event_loop::wait(const std::chrono::steady_clock::duration &duration) {
+bool event_loop::wait_for(uint64_t duration) {
if (event_port_) {
- event_port_->wait(duration);
+ event_port_->wait_for(duration);
}
return turn_loop();
}
-bool event_loop::wait(const std::chrono::steady_clock::time_point &time_point) {
+bool event_loop::wait_until(uint64_t time_point) {
if (event_port_) {
- event_port_->wait(time_point);
+ event_port_->wait_until(time_point);
}
return turn_loop();
@@ -306,12 +306,12 @@ wait_scope::~wait_scope() { loop_.leave_scope(); }
void wait_scope::wait() { loop_.wait(); }
-void wait_scope::wait(const std::chrono::steady_clock::duration &duration) {
- loop_.wait(duration);
+void wait_scope::wait_for(uint64_t duration) {
+ loop_.wait_for(duration);
}
-void wait_scope::wait(const std::chrono::steady_clock::time_point &time_point) {
- loop_.wait(time_point);
+void wait_scope::wait_until(uint64_t time_point) {
+ loop_.wait_until(time_point);
}
void wait_scope::poll() { loop_.poll(); }