资 源 简 介
c-sigslot
This project is also hosted on github.com, see https://github.com/zhouzhenghui/c-sigslot
c-sigslot, aka signal-bus, is a universal event-driven, asynchronous/parallel infrastructure for ANSI-C, built on a source level continuation implementation for C Language. It use a universal lock-free priority queue as the foundation data-structure, so that one can programming concurrency without any lock.
c-sigslot,又名signal-bus,是ANSI-C下一个通用的事件驱动,异步/并行架构,构建于C语言源代码层次的continuation实现之上。它底层使用一个无锁优先队列数据结构,从而可以不使用锁来书写并行化程序。
Owe to the continuation and universal lock-free concurrency mechanism, several language level facilities are afforded, which help a lot in writing asychronous and parallel code in imperative language, including closure, concurrent coroutine and the asychronous signal-slot mechanism.
借助于continuation和无锁并行机制,通过提供几个语言设施,包括有closure,并行化coroutine,以及异步signal-slot机制,极大的方便了在命令式语言里书写异步和并行代码。
example
A