C++ Concurrency Sandbox
Loading...
Searching...
No Matches
PaymentTask Struct Reference

A Functor simulating a financial processing task. More...

Collaboration diagram for PaymentTask:

Public Member Functions

void operator() () const
 Executes the simulated payment task.
 

Public Attributes

std::string type
 Description of the payment activity.
 

Detailed Description

A Functor simulating a financial processing task.

Definition at line 119 of file Priority.cpp.

Member Function Documentation

◆ operator()()

void PaymentTask::operator() ( ) const
inline

Executes the simulated payment task.

Definition at line 125 of file Priority.cpp.

125 {
126 std::cout << "[Worker] Processing: " << type << std::endl;
127 std::this_thread::sleep_for(std::chrono::milliseconds(200));
128 }
std::string type
Description of the payment activity.
Definition Priority.cpp:120

References type.

Member Data Documentation

◆ type

std::string PaymentTask::type

Description of the payment activity.

Definition at line 120 of file Priority.cpp.

Referenced by operator()().


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