Equalizer  1.12.0
Parallel Rendering Framework
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_ (deflect::Proxy *proxy) override
 Register a new Deflect connection for event dispatch. More...
 
void deregister (deflect::Proxy *proxy) override
 Deregister a Deflect 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 34 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 ( deflect::Proxy *  proxy)
overridevirtual

Deregister a Deflect 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_ ( deflect::Proxy *  proxy)
overridevirtual

Register a new Deflect connection for event dispatch.

Version
1.7.1

Reimplemented from eq::MessagePump.


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