AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
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 
13 #include "ajabase/common/timer.h"
14 
15 
16 // class AJAProcessImpl
17 
19 {
20 }
21 
22 
24 {
25 }
26 
27 uint64_t
29 {
30  return getpid();
31 }
32 
33 bool
35 {
36  if( kill(pid,0) == 0 )
37  return true;
38  else
39  return false;
40 }
41 
42 bool
43 AJAProcessImpl::Activate(uint64_t handle)
44 {
45  AJA_UNUSED(handle);
46 
47  // Dummy placeholder
48  return false;
49 }
50 
51 bool
52 AJAProcessImpl::Activate(const char* pWindow)
53 {
54  AJA_UNUSED(pWindow);
55 
56  // Dummy placeholder
57  return false;
58 }
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