emacs vars for .inc files
[cinelerra_cv/mob.git] / guicast / bccounter.C
blobf78a861adcc1f817e6d8c707366c12df56928438
1 #include "bccounter.h"
2 #include "mutex.h"
4 BCCounter::BCCounter()
6         value = 0;
7         mutex = new Mutex;
10 BCCounter::~BCCounter()
12         delete mutex;
15 void BCCounter::up()
17         mutex->lock("BCCounter::up");
18         value++;
19         printf("BCCounter::up %p %d\n", this, value);
20         mutex->unlock();
23 void BCCounter::down()
25         mutex->lock("BCCounter::down");
26         value--;
27         printf("BCCounter::down %p %d\n", this, value);
28         mutex->unlock();
31 //      Local Variables:
32 //      mode: C++
33 //      c-file-style: "linux"
34 //      End: