xPL Framework for Linux using C bindings (any language can link to the shared or static libraries, so not C only). Includes examples and a robust Linux based xPL Hub
FS#34 - Add multithreading compatibility
Attached to Project:
xPL4Linux (xpllib)
Opened by Chris M. (chris m.) - Saturday, 26 December 2009, 08:25 GMT-5
Opened by Chris M. (chris m.) - Saturday, 26 December 2009, 08:25 GMT-5
|
DetailsUsing the C API in a multithreaded application is not optimal:
It should be possible to have one thread handling all incomming messages and others threads sending messages without waiting for each other. Doing that locking in the application using the xPL lib results in duplicated code: the messages have to be stored in the application and then get converted (= lots of string copying) later on in the xPL handling thread. This duplication and unneccessary string copying could be avoided if the xPL API would take care that new messages could be generated by different strings at the same time. |
This task depends upon
