A unit of work executed by the CPUThreadPoolExecutor.
Declared in <folly/executors/CPUThreadPoolExecutor.h>
struct CPUTask
: ThreadPoolExecutor::Task
| Name | Description |
|---|---|
ThreadPoolExecutor::Task | A unit of work enqueued in the executor along with its metadata. |
| Name | Description |
|---|---|
Expiration | Expiration policy pairing a timeout with a callback. |
| Name | Description |
|---|---|
CPUTask [constructor] | Constructors |
priority | Returns the scheduling priority of the task. |
| Name | Description |
|---|---|
context_ | Request context captured when the task was enqueued. |
enqueueTime_ | Time when the task was enqueued. |
expiration_ | Optional expiration policy for this task. |
func_ | The callable to execute. |
| Name | Description |
|---|---|
folly::CPUThreadPoolExecutor | A Thread pool for CPU bound tasks. |