2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
\r
4 * This file is part of CasparCG.
\r
6 * CasparCG is free software: you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation, either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * CasparCG is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
\r
21 #ifndef _STATIC_FRAME_BUFFER_
\r
22 #define _STATIC_FRAME_BUFFER_
\r
24 #include "FrameBuffer.h"
\r
25 #include "../Frame.h"
\r
27 #include <tbb/spin_mutex.h>
\r
32 class StaticFrameBuffer : public FrameBuffer, private utils::Noncopyable
\r
35 StaticFrameBuffer();
\r
36 virtual ~StaticFrameBuffer();
\r
38 virtual FramePtr front() const;
\r
39 virtual FrameBufferFetchResult pop_front();
\r
40 virtual void push_back(FramePtr);
\r
41 virtual void clear();
\r
42 virtual HANDLE GetWaitHandle() const;
\r
45 utils::Event event_;
\r
47 mutable tbb::spin_mutex mutex_;
\r