OregonCore  revision 3611e8a-git
Your Favourite TBC server
SqlResultQueue Class Reference

#include <SqlOperations.h>

+ Inheritance diagram for SqlResultQueue:

Public Member Functions

 SqlResultQueue ()
 
void Update ()
 
- Public Member Functions inherited from ACE_Based::LockedQueue< Oregon::IQueryCallback *, ACE_Thread_Mutex >
 LockedQueue ()
 
virtual ~LockedQueue ()
 
void add (const Oregon::IQueryCallback * &item)
 
bool next (Oregon::IQueryCallback * &result)
 
Oregon::IQueryCallback * & peek ()
 
void cancel ()
 
bool cancelled ()
 
void lock ()
 
void unlock ()
 
void pop_front ()
 
bool empty ()
 

Detailed Description

Definition at line 149 of file SqlOperations.h.

Constructor & Destructor Documentation

SqlResultQueue::SqlResultQueue ( )
inline

Definition at line 152 of file SqlOperations.h.

152 {}

Member Function Documentation

void SqlResultQueue::Update ( void  )

Definition at line 44 of file SqlOperations.cpp.

References Oregon::IQueryCallback::Execute().

Referenced by World::UpdateResultQueue().

45 {
46  // execute the callbacks waiting in the synchronization queue
47  Oregon::IQueryCallback* callback;
48  while (next(callback))
49  {
50  callback->Execute();
51  delete callback;
52  }
53 }
virtual void Execute()=0

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