tdf#151341 Use lzfse compression instead of bzip2
[LibreOffice.git] / vcl / inc / watchdog.hxx
blob9202e432f07a57efe8c5a11941538c1102298ed7
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 INCLUDED_VCL_INC_WATCHDOG_H
11 #define INCLUDED_VCL_INC_WATCHDOG_H
13 #include <sal/config.h>
14 #include <salhelper/thread.hxx>
15 #include <atomic>
16 #include <vector>
18 class WatchdogThread final : private salhelper::Thread
20 WatchdogThread();
21 virtual void execute() override;
23 public:
24 using salhelper::Thread::acquire;
25 using salhelper::Thread::release;
26 static void start();
27 static void stop();
30 #endif // INCLUDED_VCL_INC_WATCHDOG_H
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */