Equalizer  1.10.1
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eq::glx::MessagePump Class Reference

A message pump receiving and dispatching X11 events. More...

#include <messagePump.h>

+ Inheritance diagram for eq::glx::MessagePump:
+ Collaboration diagram for eq::glx::MessagePump:

Public Member Functions

 MessagePump ()
 Construct a new X11 message pump. More...
 
virtual ~MessagePump ()
 Destruct this message pump. More...
 
void postWakeup () final
 Unblock dispatchOne(). More...
 
void dispatchAll () final
 Dispatch all pending system events, does not block. More...
 
void dispatchOne (const uint32_t timeout=LB_TIMEOUT_INDEFINITE) final
 Dispatch at least one pending system event, blocks potentially. More...
 
void register_ (Display *display)
 Register a new Display connection for event dispatch. More...
 
void deregister (Display *display)
 Deregister a Display connection from event dispatch. More...
 
void register_ (dc::Proxy *dcProxy) override
 Register a new DC connection for event dispatch. More...
 
void deregister (dc::Proxy *dcProxy) override
 Deregister a DC connection from event dispatch. More...
 
- Public Member Functions inherited from eq::MessagePump
 MessagePump ()
 Construct a new message pump. More...
 

Detailed Description

A message pump receiving and dispatching X11 events.

Definition at line 33 of file glx/messagePump.h.

Constructor & Destructor Documentation

eq::glx::MessagePump::MessagePump ( )

Construct a new X11 message pump.

Version
1.0
virtual eq::glx::MessagePump::~MessagePump ( )
virtual

Destruct this message pump.

Version
1.0

Reimplemented from eq::MessagePump.

Member Function Documentation

void eq::glx::MessagePump::deregister ( Display *  display)

Deregister a Display connection from event dispatch.

Version
1.0
void eq::glx::MessagePump::deregister ( dc::Proxy *  dcProxy)
overridevirtual

Deregister a DC connection from event dispatch.

Version
1.7.1

Reimplemented from eq::MessagePump.

void eq::glx::MessagePump::dispatchAll ( )
finalvirtual

Dispatch all pending system events, does not block.

Version
1.0

Implements eq::MessagePump.

void eq::glx::MessagePump::dispatchOne ( const uint32_t  timeout = LB_TIMEOUT_INDEFINITE)
finalvirtual

Dispatch at least one pending system event, blocks potentially.

Parameters
timeoutthe time to wait for an event
Version
1.0

Implements eq::MessagePump.

void eq::glx::MessagePump::postWakeup ( )
finalvirtual

Unblock dispatchOne().

Version
1.0

Implements eq::MessagePump.

void eq::glx::MessagePump::register_ ( Display *  display)

Register a new Display connection for event dispatch.

The registrations are referenced, that is, multiple registrations of the same display cause the Display to be added once to the event set, but require the same amount of deregistrations to stop event dispatch on the connection. Not threadsafe.

See Also
EventHandler
Version
1.0
void eq::glx::MessagePump::register_ ( dc::Proxy *  dcProxy)
overridevirtual

Register a new DC connection for event dispatch.

Version
1.7.1

Reimplemented from eq::MessagePump.


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