From 30e06b28983b90f6a7ccfdb06d2c67547bc0b991 Mon Sep 17 00:00:00 2001 From: microcai Date: Thu, 16 Jan 2025 19:58:09 +0800 Subject: [PATCH] fix compile on appleclang --- include/ucoro/inter_coro.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ucoro/inter_coro.hpp b/include/ucoro/inter_coro.hpp index afd9465..ae2ad34 100644 --- a/include/ucoro/inter_coro.hpp +++ b/include/ucoro/inter_coro.hpp @@ -262,6 +262,10 @@ class mutex any_executor& executor; std::coroutine_handle<> coro_handle; + lock_waiter(any_executor& e, std::coroutine_handle<> coro_handle) + : executor(e), coro_handle(coro_handle) + {} + void operator()() { executor.post(coro_handle);