15 #ifndef DATAGRAMQUEUE_H
16 #define DATAGRAMQUEUE_H
18 #include "pandabase.h"
20 #include "netDatagram.h"
22 #include "conditionVarFull.h"
37 bool insert(
const NetDatagram &data,
bool block =
false);
40 void set_max_queue_size(
int max_size);
41 int get_max_queue_size()
const;
42 int get_current_queue_size()
const;
A specific kind of Datagram, especially for sending across or receiving from a network.
A standard mutex, or mutual exclusion lock.
This class implements a condition variable; see ConditionVar for a brief introduction to this class...
A thread-safe, FIFO queue of NetDatagrams.