ICF 3.0.5.47
Technical documentation of ICF Libraries
istd::CSingleAsyncCaller Class Reference

Call some function asynchronously in separated thread. More...

#include <CSingleAsyncCaller.h>

Inherits QThread.

Collaboration diagram for istd::CSingleAsyncCaller:

Public Types

typedef std::function< void()> CalledFn
 

Public Member Functions

 CSingleAsyncCaller ()
 
virtual ~CSingleAsyncCaller ()
 
void DoCall (CalledFn function)
 
void KillPostponed ()
 

Protected Member Functions

void DoPostponedActions ()
 
void run () override
 

Detailed Description

Call some function asynchronously in separated thread.

If there is multiply call requests, only the last one will be executed.

Definition at line 26 of file CSingleAsyncCaller.h.

Member Typedef Documentation

◆ CalledFn

std::function<void()> istd::CSingleAsyncCaller::CalledFn

Definition at line 29 of file CSingleAsyncCaller.h.

Constructor & Destructor Documentation

◆ CSingleAsyncCaller()

istd::CSingleAsyncCaller::CSingleAsyncCaller ( )

◆ ~CSingleAsyncCaller()

virtual istd::CSingleAsyncCaller::~CSingleAsyncCaller ( )
virtual

Member Function Documentation

◆ DoCall()

void istd::CSingleAsyncCaller::DoCall ( CalledFn function)

◆ DoPostponedActions()

void istd::CSingleAsyncCaller::DoPostponedActions ( )
protected

◆ KillPostponed()

void istd::CSingleAsyncCaller::KillPostponed ( )

◆ run()

void istd::CSingleAsyncCaller::run ( )
overrideprotected

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

© Witold Gantzke and Kirill Lepskiy