mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
comments
This commit is contained in:
parent
07461ccbdd
commit
42fa5dd7ac
@ -159,7 +159,7 @@ get_current_queue_size() const {
|
||||
//
|
||||
// If block is true, this will not return false if the
|
||||
// send queue is filled; instead, it will wait until
|
||||
// this is space available.
|
||||
// there is space available.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool ConnectionWriter::
|
||||
send(const Datagram &datagram, const PT(Connection) &connection, bool block) {
|
||||
@ -198,7 +198,7 @@ send(const Datagram &datagram, const PT(Connection) &connection, bool block) {
|
||||
//
|
||||
// If block is true, this will not return false if the
|
||||
// send queue is filled; instead, it will wait until
|
||||
// this is space available.
|
||||
// there is space available.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool ConnectionWriter::
|
||||
send(const Datagram &datagram, const PT(Connection) &connection,
|
||||
|
@ -22,7 +22,10 @@
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
DatagramQueue::
|
||||
DatagramQueue() : _cv(_cvlock) {
|
||||
DatagramQueue() :
|
||||
_cvlock("DatagramQueue::_cvlock"),
|
||||
_cv(_cvlock)
|
||||
{
|
||||
_shutdown = false;
|
||||
_max_queue_size = get_net_max_write_queue();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user