#include <TnFXApp.h>
Inheritance diagram for FX::TnFXAppEventLoop:
Convenience base class for an event loop. You don't need to use this except for the primary loop.
Definition at line 189 of file TnFXApp.h.
Public Types | |
ID_LAST | |
enum | { ID_LAST } |
typedef Generic::Functor< Generic::TL::create< void, QThread * >::value > | CreationUpcallSpec |
Auto | |
InProcess | |
InKernel | |
enum | ThreadScheduler { Auto, InProcess, InKernel } |
Public Member Functions | |
TnFXAppEventLoop (const char *threadname="Event Loop thread", TnFXApp *app=TnFXApp::instance()) | |
~TnFXAppEventLoop () | |
TnFXApp * | getApp () const |
FXEventLoop * | getEventLoop () const |
QMUTEX_INLINEP bool | isLocked () const |
QMUTEX_INLINEP FXbool | locked () const |
QMUTEX_INLINEP FXuint | spinCount () const |
QMUTEX_INLINEP void | setSpinCount (FXuint c) |
QMUTEX_INLINEP void | lock () |
QMUTEX_INLINEP void | unlock () |
QMUTEX_INLINEP bool | tryLock () |
QMUTEX_INLINEP FXbool | trylock () |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
QTransString | tr (const char *text, const char *hint=0) |
virtual void * | getPythonObject () const |
virtual void | decouplePythonObject () const |
const char * | name () const throw () |
FXuval | stackSize () const |
void | setStackSize (FXuval newsize) |
ThreadScheduler | threadLocation () const |
void | setThreadLocation (ThreadScheduler threadloc) |
bool | wait (FXuint time=FXINFINITE) |
void | start (bool waitTillStarted=false) |
bool | finished () const throw () |
bool | running () const throw () |
bool | inCleanup () const throw () |
bool | isValid () const throw () |
bool | setAutoDelete (bool doso) throw () |
void | requestTermination () |
FXulong | myId () const |
QThread * | creator () const |
signed char | priority () const |
void | setPriority (signed char pri) |
FXulong | processorAffinity () const |
void | setProcessorAffinity (FXulong mask=(FXulong)-1, bool recursive=false) |
virtual void | selfDestruct () |
void * | result () const throw () |
void | disableTermination () |
bool | checkForTerminate () |
void | enableTermination () |
Generic::BoundFunctorV * | addCleanupCall (FXAutoPtr< Generic::BoundFunctorV > handler, bool inThread=false) |
bool | removeCleanupCall (Generic::BoundFunctorV *handler) |
Static Public Member Functions | |
static QMUTEX_INLINEP bool | setMutexDebugYield (bool v) |
static FXulong | id () throw () |
static QThread * | current () |
static QThread * | primaryThread () throw () |
static void | sleep (FXuint secs) |
static void | msleep (FXuint millisecs) |
static void | yield () |
static void | exit (void *retcode) |
static void | addCreationUpcall (CreationUpcallSpec upcallv, bool inThread=false) |
static bool | removeCreationUpcall (CreationUpcallSpec upcallv) |
static FXDLLLOCAL void * | int_cancelWaiterHandle () |
Protected Member Functions | |
virtual FXint | execute (FXApp *app)=0 |
virtual void | run () |
virtual void * | cleanup () |
void *& | executeRetCode () |