summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/frame_observer.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-06 03:50:52 -0700
committerStanislaw Halik <sthalik@misaki.pl>2014-09-06 03:50:52 -0700
commitdb59542cbb2fc3c2ac1b40928d514113bced8b0b (patch)
tree88b9c5efe598aed10bb82c54bfcc04a638866f0d /ftnoir_tracker_pt/frame_observer.cpp
parentb2167e6cba93106e3e6fa4a8337ebadbf049c1f8 (diff)
rename case
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..281f3d57
--- /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 (std::set<FrameObserver*>::iterator iter=frame_observers.begin(); iter!=frame_observers.end(); ++iter)
+ {
+ (*iter)->on_frame_provider_destroy();
+ }
+}