AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
processimpl.cpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MIT */
8
#include <sys/types.h>
9
#include <signal.h>
10
#include <unistd.h>
11
12
#include "
ajabase/system/linux/processimpl.h
"
13
#include "
ajabase/common/timer.h
"
14
15
16
// class AJAProcessImpl
17
18
AJAProcessImpl::AJAProcessImpl
()
19
{
20
}
21
22
23
AJAProcessImpl::~AJAProcessImpl
()
24
{
25
}
26
27
uint64_t
28
AJAProcessImpl::GetPid
()
29
{
30
return
getpid();
31
}
32
33
bool
34
AJAProcessImpl::IsValid
(uint64_t pid)
35
{
36
if
((kill(pid, 0) != 0) && (errno == ESRCH))
37
return
false
;
38
return
true
;
39
}
40
41
bool
42
AJAProcessImpl::Activate
(uint64_t handle)
43
{
44
AJA_UNUSED
(handle);
45
46
// Dummy placeholder
47
return
false
;
48
}
49
50
bool
51
AJAProcessImpl::Activate
(
const
char
* pWindow)
52
{
53
AJA_UNUSED
(pWindow);
54
55
// Dummy placeholder
56
return
false
;
57
}
AJAProcessImpl::GetPid
static uint64_t GetPid()
Definition:
processimpl.cpp:28
AJAProcessImpl::Activate
static bool Activate(uint64_t handle)
Definition:
processimpl.cpp:43
AJA_UNUSED
#define AJA_UNUSED(_x_)
Definition:
types.h:424
timer.h
Declares the AJATimer class.
processimpl.h
Declares the AJAProcessImpl class.
AJAProcessImpl::IsValid
static bool IsValid(uint64_t pid)
Definition:
processimpl.cpp:34
AJAProcessImpl::~AJAProcessImpl
virtual ~AJAProcessImpl()
Definition:
processimpl.cpp:23
AJAProcessImpl::AJAProcessImpl
AJAProcessImpl()
Definition:
processimpl.cpp:18
libajantv2
ajabase
system
linux
processimpl.cpp
Generated on Tue Dec 3 2024 10:25:59 for AJA NTV2 SDK by
1.8.17