r1022: Restructure overlay and label code for efficiency; change the graphic display...
[cinelerra_cv.git] / guicast / bccounter.C
blobbb3b98ab3ff7c677f6c4189ceeda836c6259e602
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();