Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SG-lunch/CGOPP
go style channel in C++ based on coroutine
https://github.com/SG-lunch/CGOPP
channel coroutine cpp cpp20 go
Last synced: 2 months ago
JSON representation
go style channel in C++ based on coroutine
- Host: GitHub
- URL: https://github.com/SG-lunch/CGOPP
- Owner: SG-lunch
- Created: 2019-04-03T00:09:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T08:28:00.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:16:44.939Z (6 months ago)
- Topics: channel, coroutine, cpp, cpp20, go
- Language: C++
- Homepage:
- Size: 1010 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - CGOPP
README
# CGOPP
##We implemented async channel in cpp based on coroutine.
files:
1. async\_channel.hpp is our main header file.
2. test\_thread\_pool.cpp is a sample test file.
3. cppcoro : this is facebook coroutine library (https://github.com/lewissbaker/cppcoro) with little modifications by ourself.
4. sync\_channel.hpp, cgo\_scheduler.hpp are future work.5. cppcoro, facebook coroutine library with slightly modifications. https://github.com/lewissbaker/cppcoro.
5. etc.
compile :
clang++ -std=c++17 -fcoroutines-ts target.cpp -stdlib=libc++ -L/path-to-lib/cppcoro/build/linux_x64_clang9.0.0_optimised/lib -I/path-to-include/cppcoro/include -lcppcoro -lpthreadsource :
ThreadPool.h is from https://github.com/progschj/ThreadPool/