libpcl
« Back to VersTracker
Description:
C library and API for coroutines
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: coroutines c-library multithreading async developer-tools
Install: brew install libpcl
About:
Libpcl is a portable C library that provides a lightweight API for coroutines, enabling cooperative multitasking within a single thread. It facilitates context switching between functions, allowing for the implementation of state machines and asynchronous I/O patterns without the complexity of full threading. This library is ideal for developers needing to manage concurrent tasks in resource-constrained environments.
Key Features:
  • Portable ANSI C implementation
  • Context switching via swapcontext or assembly
  • Minimal memory overhead
  • Simple API for yield and resume operations
Use Cases:
  • Implementing cooperative multitasking in embedded systems
  • Managing state in event-driven network servers
  • Porting software that relies on legacy ucontext APIs
Alternatives:
  • libcoro – Similar lightweight C library for coroutines.
  • Boost.Coroutine – C++ library offering higher-level abstractions.
Version History
Detected Version Rev Change Commit
Dec 23, 2024 5:11am 0 VERSION_BUMP e67ff86c