next up previous contents
Next: Adding a communication library Up: Using PaCO++ with your Previous: Adding an ORB   Contents

Adding a thread library

PaCO++ uses the fabric pattern to be portable through the thread library. To add a new thread library, you have to implement four classes : paco_mutex, paco_thread, paco_condition and paco_individual_fabrique_thread. These abstract classes are in the paco_thread.h file into the directory Src/thread.

Each of these class have to be implemented for your thread library. The meaning of these classes are straightforward. That's why they are not going to be explained here.

The only hard point is the paco_create_thread method of the
paco_individual_fabrique_thread class. The thread that the paco_create_thread method return has to be a detached thread because PaCO++ is not going to join the thread.



2013-04-10