LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Worker Struct Reference

Public Member Functions

 Worker (int *val, QThread *main)
 
void Increment (int n)
 
void Quit (QEventLoop &loop)
 

Public Attributes

QThread *const Main_
 
int & Val_
 

Detailed Description

Definition at line 17 of file workerthreadtest.cpp.

Constructor & Destructor Documentation

◆ Worker()

LC::Util::Worker::Worker ( int * val,
QThread * main )
inlineexplicit

Definition at line 22 of file workerthreadtest.cpp.

References Main_, and Val_.

Member Function Documentation

◆ Increment()

void LC::Util::Worker::Increment ( int n)
inline

Definition at line 28 of file workerthreadtest.cpp.

References Main_, and Val_.

◆ Quit()

void LC::Util::Worker::Quit ( QEventLoop & loop)
inline

Definition at line 36 of file workerthreadtest.cpp.

Member Data Documentation

◆ Main_

QThread* const LC::Util::Worker::Main_

Definition at line 19 of file workerthreadtest.cpp.

Referenced by Worker(), and Increment().

◆ Val_

int& LC::Util::Worker::Val_

Definition at line 20 of file workerthreadtest.cpp.

Referenced by Worker(), and Increment().


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