chalk

#include <kis_thread.h>

Inheritance diagram for KisThread:
KisThreadPool

Public Member Functions

 KisThread ()
 
virtual void cancel ()
 
virtual bool isCanceled ()
 
void runDirectly ()
 

Protected Attributes

bool m_canceled
 

Detailed Description

A KisThread is a TQThread that can be set in the canceled state.

Lengthy operations initiated in run() should regularly read the canceled state and stop when it's set to true

Definition at line 30 of file kis_thread.h.

Constructor & Destructor Documentation

◆ KisThread()

KisThread::KisThread ( )
inline

Create a new KisThread with the canceled state set to false.

Definition at line 37 of file kis_thread.h.

Member Function Documentation

◆ cancel()

virtual void KisThread::cancel ( )
inlinevirtual

Request the thread to cancel at the first opportunity.

Note that the owner of the thread is responsible for restoring the previous state of paint devices etc, the thread itself just stops as soon as possible.

Definition at line 45 of file kis_thread.h.

◆ isCanceled()

virtual bool KisThread::isCanceled ( )
inlinevirtual

Definition at line 46 of file kis_thread.h.

◆ runDirectly()

void KisThread::runDirectly ( )
inline

Definition at line 48 of file kis_thread.h.

Member Data Documentation

◆ m_canceled

bool KisThread::m_canceled
protected

Definition at line 52 of file kis_thread.h.


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