|
libcppa
Version 0.7.1
|
This library provides an implementation of the actor model for C++. It uses a network transparent messaging system to ease development of both concurrent and distributed software.
libcppa uses a thread pool to schedule actors by default. A scheduled actor should not call blocking functions. Individual actors can be spawned (created) with a special flag to run in an own thread if one needs to make use of blocking APIs.
Writing applications in libcppa requires a minimum of gluecode and each context is an actor. Even main is implicitly converted to an actor if needed.
To build libcppa, you need GCC >= 4.7 or Clang >= 3.2, and CMake.
The usual build steps on Linux and Mac OS X are:
mkdir buildcd buildcmake ..makemake install (as root, optionally)
Please run the unit tests as well to verify that libcppa works properly.
./bin/unit_tests
Please submit a bug report that includes (a) your compiler version, (b) your OS, and (c) the output of the unit tests if an error occurs.
Windows is not supported yet, because MVSC++ doesn't implement the C++11 features needed to compile libcppa.
Please read the Manual for an introduction to libcppa. It is available online at http://neverlord.github.com/libcppa/manual/index.html or as PDF version at http://neverlord.github.com/libcppa/manual/libcppa_manual.pdf
The Math Actor Example shows the usage of receive_loop and arg_match. The Dining Philosophers Example introduces event-based actors and includes a lot of libcppa features.
1.8.3.1