asyncplusplus
asyncplusplus copied to clipboard
Async++ concurrency framework for C++11
When upgrading to using gcc-11 with C++ 20, it is no longer possible to assign a task to a shared_task as in: ``` async::shared_task task{async::make_task(cb_result::CB_S_OK)}; ``` Therefore an explicit move-constructor...
main.cpp ----------------------------------------------------------------- ``` #include "mainwindow.h" #include #include #include "async++.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); auto task1 = async::spawn([] { std::cout
/opt/arm-2014/arm-2014.05//bin/arm-none-linux-gnueabi-g++ -DLIBASYNC_STATIC -isystem /home/cyc/oscmake/3rdparty/asyncplusplus/include -g -std=gnu++11 -o CMakeFiles/asyncplusplus.out.dir/src/asyncplusplus.cpp.o -c /home/cyc/oscmake/src/asyncplusplus.cpp [build] /usr/bin/make -f CMakeFiles/serial.out.dir/build.make CMakeFiles/serial.out.dir/depend [build] make[2]: Entering directory '/home/cyc/oscmake/build' [build] cd /home/cyc/oscmake/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/cyc/oscmake...
Wiki mentioned basic examples of each feature with static array of task. Can we get more examples such as how to create dynamic list of tasks and use when_all().
Hello, thank you for the nice lib. I will try to describe my problem. The default scheduler runs several tasks, says A and B Task A creates a temporary scheduler...
Can you add more support for when_all, when_any, when_seq and fail? Similar to this open source project: https://github.com/Naios/continuable https://naios.github.io/continuable/
Related to #39. It would be great to see this library in some conan repo for easier integration into own projects.
According to the wiki, build option BUILD_SHARED_LIBS permits to select between static and dynamic versions of the library to build. Is there any way to build at the same time...
Many code paths (dynamically/iteratively) generate tasks that need to be waited on. Currently one needs to make a temporary storage for all of them and then create when_all composition. The...
I have a container of N Tasks and I would like to add a continuation of n of these N tasks. The problem is that both n and N are...