Skip to content

Commit

Permalink
fix compile on appleclang
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Jan 16, 2025
1 parent 070b581 commit 30e06b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ucoro/inter_coro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 30e06b2

Please sign in to comment.