X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fcondition.h;h=51e4c95aa6184a5f3033c6b82c5176a533624e6b;hb=89205d2d9298c3e37b4dd60a9dab1e3a1bdafae7;hp=8ab4fd870c62e3de0b53a564b46440a29cda8a4a;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/condition.h b/cinelerra-5.1/guicast/condition.h index 8ab4fd87..51e4c95a 100644 --- a/cinelerra-5.1/guicast/condition.h +++ b/cinelerra-5.1/guicast/condition.h @@ -2,35 +2,35 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * 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 +#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;