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:
tpool
PRThreadPool
structure previously created by a call to PR_CreateThreadPool
.fn
arg
fn
.joinable
PR_TRUE
, the job is joinable. If PR_FALSE
, the job is not joinable. See PR_JoinJob
.Pointer to a PRJob
structure or NULL
on error.