AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
processimpl.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 #include "ajabase/common/timer.h"
10 #include <signal.h>
11 
12 
13 // class AJAProcessImpl
14 
16 {
17 }
18 
19 
21 {
22 }
23 
24 uint64_t
26 {
27  return getpid();
28 }
29 
30 bool
31 AJAProcessImpl::IsValid(uint64_t pid)
32 {
33  if(kill(pid_t(pid),0)==0)
34  return true;
35  else
36  return false;
37 }
38 
39 bool
40 AJAProcessImpl::Activate(const char* pWindow)
41 {
42  AJA_UNUSED(pWindow);
43 
44  //Dummy place holder
45  return false;
46 }
47 
48 bool
49 AJAProcessImpl::Activate(uint64_t handle)
50 {
51  AJA_UNUSED(handle);
52 
53  //Dummy place holder
54  return false;
55 }
processimpl.h
Declares the AJAProcessImpl class.
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:411
timer.h
Declares the AJATimer 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