summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT/frame_observer.cpp
blob: 281f3d571d7d6411f94c8b66b88ac3e09822cef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
	}
}