LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::gtkServer::guiThread Class Reference

An instance of this class will be the GUI server object, called gtkServer. More...

#include <ltiGtkServer.h>

Inheritance diagram for lti::gtkServer::guiThread:
Inheritance graph
[legend]
Collaboration diagram for lti::gtkServer::guiThread:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 guiThread ()
virtual ~guiThread ()
void start ()
virtual void stop ()

Protected Member Functions

virtual void run ()
virtual void cleanUp ()

Static Protected Member Functions

static void toolkitInit ()
static void toolkitMainLoop ()
static void waitUntilInitReady ()
static gint initializationTimeout (gpointer data)
static gint applicationEnd (gpointer data)

Static Protected Attributes

static semaphore initReady

Detailed Description

An instance of this class will be the GUI server object, called gtkServer.


Constructor & Destructor Documentation

lti::gtkServer::guiThread::guiThread (  ) 

default constructor

virtual lti::gtkServer::guiThread::~guiThread (  )  [virtual]

destructor


Member Function Documentation

static gint lti::gtkServer::guiThread::applicationEnd ( gpointer  data  )  [static, protected]

Stop the gtk-application.

virtual void lti::gtkServer::guiThread::cleanUp (  )  [protected, virtual]

clean up the run() method

Reimplemented from lti::thread.

static gint lti::gtkServer::guiThread::initializationTimeout ( gpointer  data  )  [static, protected]

timeout gtk-callback function, called as first when the main-loop has been initialized!

virtual void lti::gtkServer::guiThread::run (  )  [protected, virtual]

the job to be independently executed in a new thread

Implements lti::thread.

void lti::gtkServer::guiThread::start (  )  [virtual]

wait until the initialization of the gui toolkit is ready

Reimplemented from lti::thread.

virtual void lti::gtkServer::guiThread::stop (  )  [virtual]

stop the gui-thread.

Once stopped, it cannot be restarted due to a GDK limitation :-(

Reimplemented from lti::thread.

static void lti::gtkServer::guiThread::toolkitInit (  )  [static, protected]

initializes GUI toolkit

static void lti::gtkServer::guiThread::toolkitMainLoop (  )  [static, protected]

enters event handling routine of the toolkit

static void lti::gtkServer::guiThread::waitUntilInitReady (  )  [static, protected]

wait until initialization of toolkit is ready


Member Data Documentation

semaphore used to indicate if initialization is ready


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:54 2010 for LTI-Lib by Doxygen 1.6.1