bump product version to 6.3.0.0.beta1
[LibreOffice.git] / avmedia / source / vlc / wrapper / EventHandler.cxx
blob2cc40606c62b8c8eedf2f43eb1bd35646b30729b
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 #include <wrapper/EventHandler.hxx>
12 namespace avmedia
14 namespace vlc
16 namespace wrapper
18 EventHandler::EventHandler()
19 : ::osl::Thread()
23 void EventHandler::stop()
25 mCallbackQueue.push(TCallback());
26 join();
29 void EventHandler::run()
31 osl_setThreadName("VLC EventHandler");
33 TCallback callback;
36 mCallbackQueue.pop( callback );
38 if ( !callback )
39 return;
41 callback();
42 } while ( true );
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */