r/cpp • • Aug 07 '22

YACLib: Yet Another Concurrency Library

https://github.com/YACLib/YACLib
50 Upvotes

4 comments sorted by

8

u/MBkkt Aug 07 '22 edited Aug 07 '22

YACLib is a lightweight C++ library for concurrent and parallel task execution, that is striving to satisfy the following properties:

  1. Zero cost abstractions

  2. Easy to use

  3. Easy to build

  4. Good test coverage

We support C++20 coroutines, Future/Promise, and many synchronization primitives, check our readme.

Also we will glad to see new contributors. If you are interested, check good first issue

Anyway I'm open to your questions.

2

u/MBkkt Aug 07 '22 edited Aug 07 '22

Now we're implementing 3 next big features:

  1. Not a stub thread pool, mostly based on a golang idea (as I know C++ libraries don't contain something like this), but with some extensions like sharing threads coordinator between few thread pools

  2. Channels for C++20 coroutines, mostly based on the Dmitry Vyukov proposal to golang.

  3. More convenient cancelations

3

u/peterrindal Aug 07 '22

Looks great

2

u/reacheight Aug 08 '22

nice, good job