[experimental] gui/components/cc_frm_clock: use a mutex around unsetting/evaluating paintClock. This may or may not help with the clock-still-showing-when-leaving-the-channellist problem. Pretty much untested, as that issue is quite irreproducible.

This commit is contained in:
martii
2014-04-08 21:19:51 +02:00
committed by [CST] Focus
parent 13118c1148
commit 1c39a6edf4
2 changed files with 14 additions and 16 deletions

View File

@@ -31,6 +31,10 @@
#include <config.h>
#endif
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
#include "cc_base.h"
#include "cc_frm.h"
@@ -90,6 +94,8 @@ class CComponentsFrmClock : public CComponentsForm
inline Font** getClockFont();
public:
OpenThreads::Mutex mutex;
CComponentsFrmClock( const int& x_pos = 1, const int& y_pos = 1, const int& w = 200, const int& h = 48,
const char* format_str = "%H:%M",
bool activ=false,