ec_queue_async_job
Last updated March 2020
Name
ec_queue_async_job — Enqueue an asynchronous job
Synopsis
#include "ec_thread_pool.h"
| int **ec_queue_async_job** ( | job); | |
Description
Enqueue an asynchronous job.
Note
The ec_queue_async_job function (without a terminating underscore) invokes ec_queue_async_job_ and is defined in the following way: #define ec_queue_async_job(job) ec_queue_async_job_(job, __FILE__, __LINE__, 0). Invoking ec_queue_async_job_ directly is not usually required.
- job
-
The job you wish to enqueue. For a definition of this data type see ec_async_job.
On success this function returns 1; on failure, 0.
It is legal to call this function in any thread.
See Also
Was this page helpful?