Enqueue functor for execution by a worker thread.
Enqueue the specified functor to be executed by the next available thread. Return 0 if enqueued successfully, and a non-zero value if queuing is currently disabled. The behavior is undefined unless functor is not "unset". See bsl::function for more information on functors.
0 if enqueued successfully, and a non-zero value if queuing is disabled
| Name | Description |
|---|---|
| functor | job to enqueue |