VTK  9.4.20241226
Public Member Functions | List of all members
vtkThreadedTaskQueue< void, Args... > Class Template Reference

#include <vtkThreadedTaskQueue.h>

Public Member Functions

 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.
 

Detailed Description

template<typename... Args>
class vtkThreadedTaskQueue< void, Args... >

Definition at line 118 of file vtkThreadedTaskQueue.h.

Constructor & Destructor Documentation

◆ vtkThreadedTaskQueue()

template<typename... Args>
vtkThreadedTaskQueue< void, Args... >::vtkThreadedTaskQueue ( std::function< void(Args...)>  worker,
bool  strict_ordering = true,
int  buffer_size = -1,
int  max_concurrent_tasks = -1 
)

◆ ~vtkThreadedTaskQueue()

template<typename... Args>
vtkThreadedTaskQueue< void, Args... >::~vtkThreadedTaskQueue ( )

Member Function Documentation

◆ Push()

template<typename... Args>
void vtkThreadedTaskQueue< void, Args... >::Push ( Args &&...  args)

Push arguments for the work.

◆ IsEmpty()

template<typename... Args>
bool vtkThreadedTaskQueue< void, Args... >::IsEmpty ( ) const

Returns false if there's some result that may be popped right now or in the future.

◆ Flush()

template<typename... Args>
void vtkThreadedTaskQueue< void, Args... >::Flush ( )

Blocks till the queue becomes empty.


The documentation for this class was generated from the following file: