#include <vtkThreadedTaskQueue.h>
|
| | vtkThreadedTaskQueue (std::function< void(Args...)> worker, bool strict_ordering=true, int buffer_size=-1, int max_concurrent_tasks=-1) |
| |
| | ~vtkThreadedTaskQueue () |
| |
| void | Push (Args &&... args) |
| | Push arguments for the work.
|
| |
| bool | IsEmpty () const |
| | Returns false if there's some result that may be popped right now or in the future.
|
| |
| void | Flush () |
| | Blocks till the queue becomes empty.
|
| |
| | vtkThreadedTaskQueue (std::function< void(Args...)> worker, bool strict_ordering=true, int buffer_size=-1, int max_concurrent_tasks=-1) |
| |
| | ~vtkThreadedTaskQueue () |
| |
| void | Push (Args &&... args) |
| | Push arguments for the work.
|
| |
| bool | Pop (void &result) |
| | Pop the last result.
|
| |
| bool | TryPop (void &result) |
| | Attempt to pop without waiting.
|
| |
| bool | IsEmpty () const |
| | Returns false if there's some result that may be popped right now or in the future.
|
| |
| void | Flush () |
| | Blocks till the queue becomes empty.
|
| |
template<typename... Args>
class vtkThreadedTaskQueue< void, Args... >
Definition at line 118 of file vtkThreadedTaskQueue.h.
◆ vtkThreadedTaskQueue() [1/2]
template<typename... Args>
◆ ~vtkThreadedTaskQueue() [1/2]
template<typename... Args>
◆ vtkThreadedTaskQueue() [2/2]
◆ ~vtkThreadedTaskQueue() [2/2]
◆ Push() [1/2]
template<typename... Args>
Push arguments for the work.
◆ IsEmpty() [1/2]
template<typename... Args>
Returns false if there's some result that may be popped right now or in the future.
◆ Flush() [1/2]
template<typename... Args>
Blocks till the queue becomes empty.
◆ Push() [2/2]
Push arguments for the work.
◆ Pop()
Pop the last result.
Returns true on success. May fail if called on an empty queue. This will wait for result to be available.
◆ TryPop()
Attempt to pop without waiting.
If not results are available, returns false.
◆ IsEmpty() [2/2]
Returns false if there's some result that may be popped right now or in the future.
◆ Flush() [2/2]
Blocks till the queue becomes empty.
The documentation for this class was generated from the following file: