summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-14 22:57:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-14 22:57:34 +0200
commit2e79bf5e7c232aa8e09ea410083fce87330bbe3c (patch)
treeb9665fad7733350591749a649d98a06925707786 /facetracknoir
parent4c1b69ee6c4297d9e1b3ef2f68e3602f0479c702 (diff)
drop guard, only relevant in direct/blockingqueued
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/options.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/facetracknoir/options.h b/facetracknoir/options.h
index ffabd756..7833ea41 100644
--- a/facetracknoir/options.h
+++ b/facetracknoir/options.h
@@ -259,7 +259,7 @@ namespace options {
#define DEFINE_SLOT(t) void setValue(t datum) { store(datum); }
#define DEFINE_SIGNAL(t) void valueChanged(const t&)
public:
- base_value(pbundle b, const string& name) : b(b), self_name(name), reentrancy_count(0) {}
+ base_value(pbundle b, const string& name) : b(b), self_name(name) {}
protected:
pbundle b;
string self_name;
@@ -267,14 +267,9 @@ namespace options {
template<typename t>
void store(const t& datum)
{
- reentrancy_count++;
if (b->store_kv(self_name, datum))
- if (reentrancy_count <= 3)
- emit valueChanged(datum);
- reentrancy_count--;
+ emit valueChanged(datum);
}
- private:
- volatile char reentrancy_count;
public slots:
DEFINE_SLOT(double)
DEFINE_SLOT(int)