cp_thread

Section: libcprops - cp_thread (3)
Updated: OCTOBER 2005
Index Return to Main Contents [view source]
 

NAME

cp_thread - cprops thread framework  

DESCRIPTION

<cprops/thread.h> defines the cprops thread framework, offering thread pooling and load balancing. The current implementation is based on the POSIX thread api. In particular the cp_thread structure is a mnemonic for pthread_t, and the cp_thread_create(), cp_thread_join and cp_thread_detach functions are mnemonics for the pthread_* counterparts. The main intended usage is through the cp_thread_pool(3) structure so that threads would normally be created in the process of the pool initialization rather than with an explicit function call.

The prototype for client thread functions should match

void *thread_fn(void *prm);

Load balancing is done by creating multiple thread pools sharing the same cp_pooled_thread_scheduler(3) object.

 

SEE ALSO

cp_thread_pool(3), cp_pooled_thread_scheduler(3), cp_pooled_thread_client_interface(3), pthread_create(3), pthread_join(3), pthread_detach(3)


 

Index

NAME
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:32:31 GMT, December 30, 2005
SourceForge
.net Logo