FX::TnFXAppEventLoop Class Reference

#include <TnFXApp.h>

Inheritance diagram for FX::TnFXAppEventLoop:

FX::QMutex FX::FXObject FX::QThread List of all members.

Detailed Description

The base class for an event loop.

Convenience base class for an event loop. You don't need to use this except for the primary loop.

See also:
FX::TnFXApp

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 ()
TnFXAppgetApp () const
FXEventLoopgetEventLoop () 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 FXchargetClassName () 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
QThreadcreator () 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::BoundFunctorVaddCleanupCall (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 QThreadcurrent ()
static QThreadprimaryThread () 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 ()


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:47 2009 for TnFOX by doxygen v1.4.7