Skip to content

Commit 77cd92e

Browse files
committed
fix ambiguous function reference to start_detached in io_uring_context unit test
1 parent d8ef5fe commit 77cd92e

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

test/exec/test_io_uring_context.cpp

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# include "exec/linux/io_uring_context.hpp"
2626
# include "exec/scope.hpp"
2727
# include "exec/single_thread_context.hpp"
28+
# include "exec/start_detached.hpp"
2829
# include "exec/when_any.hpp"
2930

3031
# include "catch2/catch.hpp"
@@ -119,13 +120,13 @@ namespace
119120
io_uring_context context;
120121
io_uring_scheduler scheduler = context.get_scheduler();
121122
bool is_called = false;
122-
start_detached(schedule(scheduler)
123-
| then(
124-
[&]
125-
{
126-
CHECK(context.is_running());
127-
is_called = true;
128-
}));
123+
exec::start_detached(schedule(scheduler)
124+
| then(
125+
[&]
126+
{
127+
CHECK(context.is_running());
128+
is_called = true;
129+
}));
129130
context.run_until_empty();
130131
CHECK(is_called);
131132
CHECK(!context.is_running());
@@ -206,13 +207,13 @@ namespace
206207
io_uring_scheduler scheduler = context.get_scheduler();
207208
{
208209
bool is_called = false;
209-
start_detached(schedule(scheduler)
210-
| then(
211-
[&]
212-
{
213-
CHECK(context.is_running());
214-
is_called = true;
215-
}));
210+
exec::start_detached(schedule(scheduler)
211+
| then(
212+
[&]
213+
{
214+
CHECK(context.is_running());
215+
is_called = true;
216+
}));
216217
context.run_until_empty();
217218
CHECK(is_called);
218219
CHECK(!context.is_running());

0 commit comments

Comments
 (0)