summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/frame_observer.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-15 12:39:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-15 12:39:32 +0200
commitbef7aff31e5ea073f0f160ca6a2f1e56b7dd881a (patch)
tree2f6122f682427322f925736e87a0bd68b658972c /FTNoIR_Tracker_PT/frame_observer.cpp
parent3734ab61a6f0d4d8aad32a17a2eb5fc49245626e (diff)
Initial PT 1.1 import
Codebase broken at this stage
Diffstat (limited to 'FTNoIR_Tracker_PT/frame_observer.cpp')
-rw-r--r--FTNoIR_Tracker_PT/frame_observer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/FTNoIR_Tracker_PT/frame_observer.cpp b/FTNoIR_Tracker_PT/frame_observer.cpp
new file mode 100644
index 00000000..7e4bb3e3
--- /dev/null
+++ b/FTNoIR_Tracker_PT/frame_observer.cpp
@@ -0,0 +1,18 @@
+/* Copyright (c) 2013 Patrick Ruoff
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ */
+
+#include "frame_observer.h"
+
+//-----------------------------------------------------------------------------
+FrameProvider::~FrameProvider()
+{
+ QMutexLocker lock(&observer_mutex);
+ for (auto iter=frame_observers.begin(); iter!=frame_observers.end(); ++iter)
+ {
+ (*iter)->on_frame_provider_destroy();
+ }
+} \ No newline at end of file