xoreos
0.0.5
|
The graphics queue manager. More...
#include <queueman.h>
Public Member Functions | |
QueueManager () | |
~QueueManager () | |
bool | isQueueEmpty (QueueType queue) |
void | lockQueue (QueueType queue) |
void | unlockQueue (QueueType queue) |
const std::list< Queueable * > & | getQueue (QueueType queue) const |
void | sortQueue (QueueType queue) |
void | clearQueue (QueueType queue) |
void | clearAllQueues () |
Private Member Functions | |
std::list< Queueable * >::iterator | addToQueue (QueueType queue, Queueable &q) |
void | removeFromQueue (QueueType queue, const std::list< Queueable *>::iterator &ref) |
Private Attributes | |
Common::Mutex | _queueMutex [kQueueMAX] |
std::list< Queueable * > | _queue [kQueueMAX] |
Friends | |
class | Queueable |
Additional Inherited Members | |
Static Public Member Functions inherited from Common::Singleton< QueueManager > | |
static QueueManager & | instance () |
static void | destroy () |
Protected Types inherited from Common::Singleton< QueueManager > | |
typedef QueueManager | SingletonBaseType |
Protected Member Functions inherited from Common::Singleton< QueueManager > | |
Singleton () | |
virtual | ~Singleton () |
The graphics queue manager.
Definition at line 41 of file queueman.h.
Graphics::QueueManager::QueueManager | ( | ) |
Definition at line 37 of file queueman.cpp.
Graphics::QueueManager::~QueueManager | ( | ) |
Definition at line 40 of file queueman.cpp.
References clearAllQueues().
|
private |
Definition at line 70 of file queueman.cpp.
References _queue, lockQueue(), and unlockQueue().
void Graphics::QueueManager::clearAllQueues | ( | ) |
Definition at line 103 of file queueman.cpp.
References clearQueue(), and Graphics::kQueueMAX.
Referenced by ~QueueManager().
void Graphics::QueueManager::clearQueue | ( | QueueType | queue | ) |
Definition at line 91 of file queueman.cpp.
References _queue, lockQueue(), and unlockQueue().
Referenced by clearAllQueues().
Definition at line 58 of file queueman.cpp.
References _queue.
bool Graphics::QueueManager::isQueueEmpty | ( | QueueType | queue | ) |
Definition at line 52 of file queueman.cpp.
References _queue, and _queueMutex.
void Graphics::QueueManager::lockQueue | ( | QueueType | queue | ) |
Definition at line 44 of file queueman.cpp.
References _queueMutex, and Common::Mutex::lock().
Referenced by addToQueue(), clearQueue(), removeFromQueue(), and sortQueue().
|
private |
Definition at line 81 of file queueman.cpp.
References _queue, lockQueue(), and unlockQueue().
void Graphics::QueueManager::sortQueue | ( | QueueType | queue | ) |
Definition at line 62 of file queueman.cpp.
References _queue, lockQueue(), Graphics::queueComp(), and unlockQueue().
void Graphics::QueueManager::unlockQueue | ( | QueueType | queue | ) |
Definition at line 48 of file queueman.cpp.
References _queueMutex, and Common::Mutex::unlock().
Referenced by addToQueue(), clearQueue(), removeFromQueue(), and sortQueue().
|
friend |
Definition at line 65 of file queueman.h.
Definition at line 60 of file queueman.h.
Referenced by addToQueue(), clearQueue(), getQueue(), isQueueEmpty(), removeFromQueue(), and sortQueue().
|
private |
Definition at line 59 of file queueman.h.
Referenced by isQueueEmpty(), lockQueue(), and unlockQueue().