]> sjero.net Git - iperf/blobdiff - src/main.cpp
Fix CPU Usage Bug
[iperf] / src / main.cpp
index eaeaa92c2d6244abe4eb4599dac21508fcc78da3..f0bb7b235550227696f5ea9d411df19602eab91e 100644 (file)
@@ -96,6 +96,7 @@ extern "C" {
     // records being accessed in a report and also to
     // serialize modification of the report list
     Condition ReportCond;
+    Condition ReportDoneCond;
 }
 
 // global variables only accessed within this file
@@ -141,6 +142,7 @@ int main( int argc, char **argv ) {
 
     // Initialize global mutexes and conditions
     Condition_Initialize ( &ReportCond );
+    Condition_Initialize ( &ReportDoneCond );
     Mutex_Initialize( &groupCond );
     Mutex_Initialize( &clients_mutex );