Queues a job to a thread pool for execution.
#include <prtpool.h> NSPR_API(PRJob *) PR_QueueJob( PRThreadPool *tpool, PRJobFn fn, void *arg, PRBool joinable );
The function has the following parameters:
- A pointer to a
PRThreadPoolstructure previously created by a call to
- The function to be executed when the job is executed.
- A pointer to an argument passed to
PR_TRUE, the job is joinable. If
PR_FALSE, the job is not joinable. See
Pointer to a
PRJob structure or
NULL on error.