Hydra 0.20
desktop::RunnableEventFunction Class Reference

#include <RunnableEvent.h>

Inheritance diagram for desktop::RunnableEventFunction:

List of all members.

Public Member Functions

 RunnableEventFunction (std::function< void()> f)
virtual void run (void)

Static Public Member Functions

static void enqueueMain (std::function< void()> f)
static void enqueueWorker (std::function< void()> f, int priority=0)

Detailed Description

An object who's run() method will call the given function.

This class can be used where QRunnable's are needed or QEvent's (via the RunnableEvent base).

Author:
Aleksander Demko

Member Function Documentation

static void desktop::RunnableEventFunction::enqueueMain ( std::function< void()>  f) [static]

Queues the function, via a new RunnableEventFunction to the main gui thread via QCoreApplication::postEvent

Author:
Aleksander Demko
static void desktop::RunnableEventFunction::enqueueWorker ( std::function< void()>  f,
int  priority = 0 
) [static]

Queues a function to the background worker thread pool.

Author:
Aleksander Demko
virtual void desktop::RunnableEventFunction::run ( void  ) [virtual]

the run method that will be called by the customEvent handler

Implements desktop::RunnableEvent.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables