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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b07f31 · Mar 23, 2025
Mar 20, 2025
Mar 18, 2025
Mar 17, 2025
Mar 20, 2025
Mar 18, 2025
Mar 23, 2025
Nov 27, 2023
Nov 27, 2023
May 20, 2023
May 15, 2024
Mar 23, 2025
Jun 14, 2023
Mar 17, 2025
Nov 5, 2023
Sep 17, 2023

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.