Oxygine  1
2g game engine
Classes | Public Types | Public Member Functions | List of all members
oxygine::ThreadDispatcher Class Reference

#include <ThreadDispatcher.h>


struct  message
struct  peekMessage

Public Types

typedef void(* callback) (const message &m)

Public Member Functions

bool empty ()
size_t size ()
void wait ()
void get (message &ev)
bool peek (peekMessage &ev, bool del)
void clear ()
void * send (int msgid, void *arg1, void *arg2)
void * sendCallback (void *arg1, void *arg2, callback cb, void *cbData, bool highPriority=false)
void sendCallback (const std::function< void()> &)
void post (int msgid, void *arg1, void *arg2)
void postCallback (int msgid, void *arg1, void *arg2, callback cb, void *cbData)
void postCallback (void *arg1, void *arg2, callback cb, void *cbData)
void postCallback (const std::function< void()> &)
void removeCallback (int msgid, callback cb, void *cbData)
void reply (void *val)
std::vector< message > & lockMessages ()
void unlockMessages ()

Detailed Description

Messages Queue used for communication between threads

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