gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libnet cque.cpp cque.h


From: Zou Lunkai
Subject: [Gnash-commit] gnash/libnet cque.cpp cque.h
Date: Mon, 31 Mar 2008 02:47:48 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  08/03/31 02:47:48

Modified files:
        libnet         : cque.cpp cque.h 

Log message:
        * libnet/cque.{h, cpp}: add the USE_STATS_QUEUE macro guard, fix
          building without USE_STATS_QUEUE defined.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libnet/cque.cpp?cvsroot=gnash&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/gnash/libnet/cque.h?cvsroot=gnash&r1=1.4&r2=1.5

Patches:
Index: cque.cpp
===================================================================
RCS file: /sources/gnash/gnash/libnet/cque.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- cque.cpp    29 Mar 2008 03:12:45 -0000      1.6
+++ cque.cpp    31 Mar 2008 02:47:48 -0000      1.7
@@ -40,10 +40,12 @@
 CQue::CQue()
 {
 //    GNASH_REPORT_FUNCTION;
+#ifdef USE_STATS_QUEUE
     _stats.totalbytes = 0;
     _stats.totalin = 0;
     _stats.totalout = 0;
     clock_gettime (CLOCK_REALTIME, &_stats.start);
+#endif
     _name = "default";
 }
 

Index: cque.h
===================================================================
RCS file: /sources/gnash/gnash/libnet/cque.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- cque.h      29 Mar 2008 03:12:46 -0000      1.4
+++ cque.h      31 Mar 2008 02:47:48 -0000      1.5
@@ -71,7 +71,9 @@
     
     // Dump the data to the terminal
     void dump();
+#ifdef USE_STATS_QUEUE
     que_stats_t *stats() { return &_stats; };
+#endif
     void setName(const std::string &str) { _name = str; }
 private:
     // an optional name for the queue, only used for debugging messages to 
make them unique




reply via email to

[Prev in Thread] Current Thread [Next in Thread]