kodi
xbmc
interfaces
generic
RunningScriptObserver.h
1
/*
2
* Copyright (C) 2017-2021 Team Kodi
3
* This file is part of Kodi - https://kodi.tv
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
* See LICENSES/README.md for more information.
7
*/
8
9
#pragma once
10
11
#include "threads/Event.h"
12
#include "threads/IRunnable.h"
13
#include "threads/Thread.h"
14
15
#include <atomic>
16
17
class
CRunningScriptObserver
:
public
IRunnable
18
{
19
public
:
20
CRunningScriptObserver
(
int
scriptId,
CEvent
& evt);
21
~
CRunningScriptObserver
();
22
23
void
Abort();
24
25
protected
:
26
// implementation of IRunnable
27
void
Run()
override
;
28
29
int
m_scriptId;
30
CEvent
& m_event;
31
32
CEvent
m_stopEvent;
33
CThread
m_thread;
34
};
CEvent
This is an Event class built from a ConditionVariable.
Definition:
Event.h:35
CThread
Definition:
Thread.h:44
IRunnable
Definition:
IRunnable.h:11
CRunningScriptObserver
Definition:
RunningScriptObserver.h:17
Generated by
1.8.13