Into

Modules

Documentation

classPiiEventProcessorRunner

#include <PiiEventProcessor.h>

A utility class that automatically starts the event processing thread upon construction and stops it when destructed.

Inherits PiiEventProcessor

Description

An easy way to create the main event loop in a non-Qt application is to create a static instance of PiiEventProcessorRunner.

 class MyClass
 {
 public:
   static PiiEventProcessorRunner mainThread;
 };

Now, event processing can be enabled by invoking MyClass::mainThread.takeObject(obj).

Constructors and destructor

Creates a new event processing thread and starts it.

Stops the thread and waits until it is finished.

Function details

  • PiiEventProcessorRunner

    ()

    Creates a new event processing thread and starts it.

  • ~PiiEventProcessorRunner

    ()

    Stops the thread and waits until it is finished.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.