GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / avmedia / source / vlc / wrapper / EventHandler.hxx
blobcef2fdbca21f9c74feea6f1809c2b5aebc1d0d99
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef _WRAPPER_EVENT_HANDLER_HXX
11 #define _WRAPPER_EVENT_HANDLER_HXX
12 #include <boost/function.hpp>
13 #include <boost/noncopyable.hpp>
14 #include <salhelper/thread.hxx>
15 #include "ThreadsafeQueue.hxx"
17 namespace avmedia
19 namespace vlc
21 namespace wrapper
23 class EventHandler : public ::osl::Thread, boost::noncopyable
25 public:
26 EventHandler();
27 void stop();
29 protected:
30 virtual void SAL_CALL run();
32 public:
33 typedef boost::function< void() > TCallback;
34 ThreadsafeQueue< TCallback > mCallbackQueue;
40 #endif // _WRAPPER_EVENT_HANDLER_HXX
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */