Vireo
Preemptible green threads in C for Linux
Install / Use
/learn @geofft/VireoREADME
Vireo, a green thread library
Vireo is a tiny C library implementing preemptible green threads (greenlets) for Linux. It is designed as an example of how to implement userspace threading, that is, without special kernel support or awareness of multiple threads. It is also a good example of how to use the setcontext(3) family of functions.
Vireo's focus is on readability and pedagogy, not performance or complete correctness. In particular, the library does no error-checking for most system calls.
This library was written for MIT's operating systems class, and the examples are taken from the examples / test cases in JOS, the teaching OS used in that class. The library itself is licensed under the 2-clause BSD license.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
