Sfoglia il codice sorgente

Merge pull request #9601 from richardkchapman/roxie-copy

HPCC-17064 UDP code is passing large objects around

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 8 anni fa
parent
commit
a083cfd53a
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      roxie/udplib/udpsha.hpp

+ 4 - 4
roxie/udplib/udpsha.hpp

@@ -88,8 +88,8 @@ public:
 
 
 template < class _et >
-class simple_queue {
-    
+class simple_queue
+{
     _et             *elements;
     unsigned int    element_count;
     int             first;
@@ -100,7 +100,7 @@ class simple_queue {
     Semaphore       free_space;
     
 public: 
-    void push(_et element) 
+    void push(const _et &element)
     {
         free_space.wait();
         c_region.enter();
@@ -112,7 +112,7 @@ public:
         data_avail.signal();
     }
     
-    bool push(_et element,long timeout) 
+    bool push(const _et &element,long timeout)
     {
         if (free_space.wait(timeout) ) {
             c_region.enter();