-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help for error: Assertion `this->load_steals() == 0' failed #33
Comments
It looks like you have no joins, every fork requires a join. Also libfork provides a |
Thanks for your reply. now I added two lf::join , but got below compile error. error
|
Join is an object that can be directly awaited you don't need the parentheses |
Yeah! |
I'm trying to use libfork for dag task, and got below code. It can get the correct output, but got assert error before exit. It is ok if with unit_pool.
Would you please give some help ?
build command
g++-14 test2.cpp -std=c++2b -I/usr/local/include/libfork-3.8.0/ -o test2
test2.cpp
the output as below
executing task d
executing task e
executing task a
executing task b
executing task c
test2: /usr/local/include/libfork-3.8.0/libfork/core/impl/promise.hpp:308: auto lf::impl::promise<R, I, Tag>::final_suspend() const [with R = void; I = std::shared_ptr<lf::impl::future_shared_state >; lf::core::tag Tag = lf::core::tag::root]: Assertion `this->load_steals() == 0' failed.
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: