Skip to content

A simple C coroutine library, with multithreading and more, the Go and C++20 style way.

License

Notifications You must be signed in to change notification settings

zelang-dev/c-coroutine

Repository files navigation

c-coroutine

windows & linux & macOSmacOSarmv7, aarch64, ppc64leriscv64 & s390x by ucontext  .

Table of Contents

Introduction

This branch main, is now an WIP to incorporate libuv with c-raii. See branches for previous setup.

Synopsis

Usage

See examples folder

Installation

The build system uses cmake, that produces single static library stored under built, and the complete include folder is needed.

Linux

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug/Release -DBUILD_EXAMPLES=ON # use to build files in examples folder
cmake --build .

Windows

mkdir build
cd build
cmake .. -D BUILD_EXAMPLES=ON # use to build files in examples folder
cmake --build . --config Debug/Release

Contributing

Contributions are encouraged and welcome; I am always happy to get feedback or pull requests on Github :) Create Github Issues for bugs and new features and comment on the ones you are interested in.

License

The MIT License (MIT). Please see License File for more information.