Skip to content

SG-lunch/CGOPP

Repository files navigation

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.

  6. 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 -lpthread

source : ThreadPool.h is from https://github.com/progschj/ThreadPool/