libfiber

The high performance c/c++ coroutine/fiber library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI.

24 articles 799 View on GitHub ↗
24 articles
How to Use the C++ go_fiber API with Lambda Expressions in libfiber

Learn to use the C++ go_fiber API with lambda expressions in libfiber. Launch fibers using intuitive lambda syntax via operator overloading on temporary go_fiber objects. Get started now.

how-to-guide
Mar 4, 2026
How to Migrate libco or libmill Code to libfiber: A Complete Porting Guide

Effortlessly migrate your libco or libmill code to libfiber. Discover the simple steps to replace functions and run your scheduler for a seamless transition. Follow our complete porting guide.

migration-guide
Mar 4, 2026
Thread-Safety Considerations When Mixing Libfiber Fibers with pthreads

Learn thread-safety considerations for mixing libfiber with pthreads. Discover how to avoid race conditions with independent schedulers and exclusive synchronization primitive use.

best-practices
Mar 4, 2026
How to Use fiber_sem to Limit Concurrent Database Connections in libfiber

Learn to limit concurrent database connections in libfiber using fiber_sem. Implement wait and post or use fiber_sem_guard for RAII-based connection management.

how-to-guide
Mar 4, 2026
How to Use fiber_delay for Non-Blocking Timeouts in libfiber

Master non-blocking timeouts with fiber_delay in libfiber. Suspend fibers effectively without blocking OS threads, enabling efficient cooperative multitasking.

how-to-guide
Mar 4, 2026
How to Implement a Producer-Consumer Pattern Using Fiber Channels in libfiber

Implement the producer consumer pattern with libfiber channels. Learn to create bounded queues for lock-free coroutine communication. Suspend producers and consumers automatically.

how-to-guide
Mar 4, 2026
How to Use the io_uring Event Mechanism on Modern Linux Kernels with libfiber

Learn to use the io_uring event mechanism on Linux kernels with libfiber for high-performance asynchronous I/O. Enable io_uring at compile time and runtime for efficient operations.

how-to-guide
Mar 4, 2026
How the Libfiber Fiber Scheduler Handles Multiple Threads: Per-Thread Architecture Explained

Discover how the libfiber fiber scheduler utilizes a per-thread architecture for efficient multi-threaded execution. Learn how isolated schedulers prevent fiber migration.

internals
Mar 4, 2026
How to Use fiber_event for Efficient Fiber Synchronization in libfiber

Master fiber synchronization with libfiber's fiber_event. Learn to create, wait, and notify efficiently using acl_fiber_event functions for optimal performance in your applications.

how-to-guide
Mar 4, 2026
Optimal Stack Size Configurations for libfiber Workloads: A Complete Guide

Discover optimal libfiber stack size configurations for your workload. Learn how to match private shared or pool allocation stacks to prevent memory issues and ensure peak performance.

best-practices
Mar 4, 2026
How to Handle Graceful Fiber Cancellation and Shutdown in libfiber

Master graceful fiber cancellation and shutdown in libfiber. Learn to use FIBER_F_CANCELED, acl_fiber_canceled, acl_fiber_kill, and acl_fiber_signal for robust error handling and clean termination.

how-to-guide
Mar 4, 2026
How to Debug Fiber Deadlocks and Memory Issues in libfiber

Debug libfiber deadlocks and memory issues effectively. Learn to use acl_fiber_ndead, acl_fiber_memstat, instrument fiber_swap and __lock, and enable FIBER_STACK_GUARD for robust debugging.

how-to-guide
Mar 4, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →