krita

KisThread Class Reference

#include <kis_thread.h>

Inheritance diagram for KisThread:

KisFiltersThumbnailThread KisScaleWorker KisThreadPool List of all members.

Detailed Description

A KisThread is a QThread 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.


Public Member Functions

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

Protected Attributes

bool m_canceled

Constructor & Destructor Documentation

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

virtual void KisThread::cancel (  )  [inline, virtual]

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.

Reimplemented in KisFiltersThumbnailThread.

Definition at line 45 of file kis_thread.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys