![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Control the thread pool behavior
#include <sys/iofunc.h>
#include <sys/dispatch.h>
thread_pool_control( thread_pool_t * pool,
thread_pool_attr_t * attr,
uint16_t lower,
uint16_t upper,
unsigned flags )
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Use thread_pool_control() to specify a thread pool's behavior and adjust its attributes.
![]() |
Having several threads call this function with the same thread pool handle isn't recommended. |
-1 if an error occurs (errno is set).
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
thread_pool_destroy(), thread_pool_create(), thread_pool_limits(), thread_pool_start()
![]() |
![]() |
![]() |
![]() |