David Rose 17 years ago
parent
commit
42fa5dd7ac
2 changed files with 6 additions and 3 deletions
  1. 2 2
      panda/src/net/connectionWriter.cxx
  2. 4 1
      panda/src/net/datagramQueue.cxx

+ 2 - 2
panda/src/net/connectionWriter.cxx

@@ -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,

+ 4 - 1
panda/src/net/datagramQueue.cxx

@@ -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();
 }