[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.

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1c39a6edf4
Author: martii <m4rtii@gmx.de>
Date: 2014-04-08 (Tue, 08 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-08 21:19:51 +02:00
committed by [CST] Focus
parent 03d91b7b1a
commit 9ca9388976
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,