This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Start a thread pool to handle client requests
#include <sys/pmm.h> int pmm_start(thread_pool_attr_t *tatttr);
libc
This starts a thread pool to begin servicing client requests, and is the last action the product specific initialisation code performs:
If tattr is NULL, the thread pool is created with internal defaults.
The return value from this function depends on the thread pool flags:
In this case, the caller should call procmgr_daemon() before calling >pmm_start() in order to set the process as a daemon.
If an error occurs, it returns -1 and errno is set one of the following:
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |