cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

A library of C++ coroutine abstractions for the coroutines TS

Results 108 cppcoro issues
Sort by recently updated
recently updated
newest added

Starting from glibc 2.34 the value `SIGSTKSZ` turned from a compile-time constant to a run-time value, which is incompatible with the current `doctest.h` this project is using. Thus, on platforms...

The following code reproduces cancellation deadlock. I understand the essence of the problem, if anyone is interested, I would be happy to discuss it. Also, I have studied the facebook/folly...

In my understanding, the test check whether coroutine has started, so it should set startedExecution = true when coroutine started.

I'm getting following error when trying to build cppcoro with ./build-clang.sh script: > FAILED: src/CMakeFiles/cxx_static.dir/regex.cpp.o > /home/menkaur/github/cppcoro/build/llvm-install/bin/clang++ -DNDEBUG -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_COMMENT_LIB_PRAGMA -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -I/home/menkaur/github/cppcoro/build/libcxx/include/c++build -I/home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include -O3 -DNDEBUG -D__GLIBCXX__ -DLIBSTDCXX -std=c++11 -nostdinc++ -fvisibility-inlines-hidden...

How about adding a new coroutine type co_resource? vector's blog post [co_resource: An RAII coroutine](https://vector-of-bool.github.io/2021/12/30/co_resource.html) Implementation of co_resource in [neo_fun](https://github.com/vector-of-bool/neo-fun/blob/develop/src/neo/co_resource.hpp)

```cpp while (awaiters != nullptr) { diff_t diff = TRAITS::difference(targetSequence, lastKnownPublished); if (diff > 0) { // Not yet ready. minDiff = diff < minDiff ? diff : minDiff; *awaitersToEnqueueTail...

MSVC now supports symmetric transfer, and I think gcc has since it introduced coroutines support. However, cppcoro currently only uses symmetric transfer for clang >= 7. https://github.com/lewissbaker/cppcoro/blob/391215262bd40d68ac6534810164131f5f9eb148/include/cppcoro/config.hpp#L33-L44 Rather than hard-coding...

Followed the instructions and get the following error: D:\github\cppcoro>cake.bat release=debug architecture=x64 lib/build.cake Traceback (most recent call last): File "D:\github\cppcoro\tools\cake\src\run.py", line 17, in cake.main.execute() File "D:\github\cppcoro\tools\cake\src\cake\main.py", line 22, in execute import...