资 源 简 介
About
libactor is a library for C that allows a developer to easily program with the Actor Model.
Right now it is usable, although it may not be ready for production. It uses pthreads and the library handles all of threading issues, so you don’t have to worry about any of it at all.
In a future version I plan to add more sandboxing to the actors, so that when one actor crashes, they don’t all go down!
Right now it supports the following:
Spawn actor
Sending messages
Broadcast message
Actor memory management convenience functions(when an actor dies, the memory is freed!)
You can find documentation here.
Installation
Get a copy of the source in the downloads section.
./configure && makesudo make install
Example
Here is an example of two actors that just Ping/Pong each other.