Planeshift
|
#include <netbase.h>
Public Member Functions | |
bool | GetPending () |
NetPacketQueueRefCount (int qlen) | |
void | SetPending (bool flag) |
This flag ensures the same object is not queued twice. Doesn't have to mutexed here because these are already called from within a queue mutex. More... | |
virtual | ~NetPacketQueueRefCount () |
![]() | |
bool | Add (queuetype *msg) |
This adds a message to the queue and waits if it is full. More... | |
bool | AddWait (queuetype *msg, csTicks timeout=0) |
like above, but waits to add the next message, if the queue is full be careful with this. More... | |
unsigned int | Count () |
Number of items in the queue. More... | |
GenericRefQueue (unsigned int maxsize=500) | |
csPtr< queuetype > | Get () |
This gets the next message from the queue, it is then removed from the queue. More... | |
csPtr< queuetype > | GetWait (csTicks timeout) |
like above, but waits for the next message, if the queue is empty More... | |
void | Interrupt () |
This function interrupt the queue if it is waiting. More... | |
bool | IsFull () |
csPtr< queuetype > | Peek () |
~GenericRefQueue () | |
![]() | |
csSyncRefCount () | |
Initialize object and set reference to 1. More... | |
void | DecRef () |
Decrease the number of references to this object. More... | |
int32 | GetRefCount () |
Get the reference count (only for debugging). More... | |
void | IncRef () |
Increase the number of references to this object. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~csSyncRefCount () |
![]() | |
CS::Threading::Condition | datacondition |
CS::Threading::RecursiveMutex | mutex |
refType< queuetype > * | qbuffer |
unsigned int | qend |
unsigned int | qsize |
unsigned int | qstart |
![]() | |
int32 | ref_count |
|
inline |
|
inlinevirtual |
|
inline |