We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1546d0b commit 926fdceCopy full SHA for 926fdce
rvk/execute.h
@@ -53,18 +53,17 @@ template<typename F>
53
requires Invocable<F, Commands&>
54
auto async(Async::Pool<>& pool, F&& f, Queue_Family family, u32 index)
55
-> Async::Task<Invoke_Result<F, Commands&>> {
56
+ co_await pool.suspend();
57
auto fence = make_fence();
58
auto cmds = make_commands(family);
59
if constexpr(Same<Invoke_Result<F, Commands&>, void>) {
60
forward<F>(f)(cmds);
61
submit(cmds, index, fence);
62
co_await pool.event(fence.event());
- fence.wait();
63
} else {
64
auto ret = forward<F>(f)(cmds);
65
66
67
68
co_return ret;
69
}
70
0 commit comments