Tkrzw
Public Member Functions | List of all members
tkrzw::TaskQueue::TaskWithLambda Class Referencefinal

Task implementation with a lambda function. More...

#include <tkrzw_thread_util.h>

Public Member Functions

 TaskWithLambda (TaskLambdaType lambda)
 Constructor. More...
 
void Do () override
 Do the task. More...
 
- Public Member Functions inherited from tkrzw::TaskQueue::Task
virtual ~Task ()=default
 Destructor. More...
 

Detailed Description

Task implementation with a lambda function.

Constructor & Destructor Documentation

◆ TaskWithLambda()

tkrzw::TaskQueue::TaskWithLambda::TaskWithLambda ( TaskLambdaType  lambda)
explicit

Constructor.

Parameters
lambdaA lambda function to process a task.

Member Function Documentation

◆ Do()

void tkrzw::TaskQueue::TaskWithLambda::Do ( )
overridevirtual

Do the task.

Implements tkrzw::TaskQueue::Task.