remove whitespace at eol
[goodguy/history.git] / cinelerra-5.1 / guicast / condition.h
index 8ab4fd870c62e3de0b53a564b46440a29cda8a4a..51e4c95aa6184a5f3033c6b82c5176a533624e6b 100644 (file)
@@ -2,35 +2,35 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- * 
+ *
  */
 
 #ifndef CONDITION_H
 #define CONDITION_H
 
 #include <pthread.h>
+#include "bctrace.inc"
 
-class Condition
+class Condition : public trace_info
 {
 public:
        Condition(int init_value = 0, const char *title = 0, int is_binary = 0);
        ~Condition();
 
-
 // Reset to init_value whether locked or not.
        void reset();
 // Block if value <= 0, then decrease value
@@ -43,9 +43,9 @@ public:
        int timed_lock(int microseconds, const char *location = 0);
        int get_value();
 
-    pthread_cond_t cond;
-    pthread_mutex_t mutex;
-    int value;
+       pthread_cond_t cond;
+       pthread_mutex_t mutex;
+       int value;
        int init_value;
        int is_binary;
        const char *title;