AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
eventimpl.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
8 #ifndef AJA_EVENT_IMPL_H
9 #define AJA_EVENT_IMPL_H
10 
11 #include "ajabase/system/system.h"
12 #include "ajabase/common/common.h"
13 #include "ajabase/system/event.h"
14 
15 
17 {
18 public:
19 
20  AJAEventImpl(bool manualReset, const std::string& name);
21  virtual ~AJAEventImpl(void);
22 
23  AJAStatus Signal(void);
24  AJAStatus Clear(void);
25 
26  AJAStatus SetState(bool signaled = true);
27  AJAStatus GetState(bool* pSignaled);
28 
29  AJAStatus SetManualReset(bool manualReset);
30  AJAStatus GetManualReset(bool* pManualReset);
31 
32  AJAStatus WaitForSignal(uint32_t timeout = 0xffffffff);
33 
34  virtual AJAStatus GetEventObject(uint64_t* pEventObject);
35 
36 private:
37  pthread_mutex_t mMutex;
38  pthread_cond_t mCondVar;
39  bool mSignaled;
40  bool mManualReset;
41 };
42 
43 #endif // AJA_EVENT_IMPL_H
AJAEventImpl
Definition: eventimpl.h:16
AJAEventImpl::~AJAEventImpl
virtual ~AJAEventImpl(void)
Definition: eventimpl.cpp:29
AJAStatus
AJAStatus
Definition: types.h:378
AJAEventImpl::GetState
AJAStatus GetState(bool *pSignaled)
Definition: eventimpl.cpp:90
AJAEventImpl::SetState
AJAStatus SetState(bool signaled=true)
Definition: eventimpl.cpp:72
AJAEventImpl::GetEventObject
virtual AJAStatus GetEventObject(uint64_t *pEventObject)
Definition: eventimpl.cpp:176
event.h
Declares the AJAEvent class.
AJAEventImpl::WaitForSignal
AJAStatus WaitForSignal(uint32_t timeout=0xffffffff)
Definition: eventimpl.cpp:121
system.h
System specific functions.
common.h
Private include file for all ajabase sources.
AJAEventImpl::GetManualReset
AJAStatus GetManualReset(bool *pManualReset)
Definition: eventimpl.cpp:108
AJAEventImpl::AJAEventImpl
AJAEventImpl(bool manualReset, const std::string &name)
Definition: eventimpl.cpp:17
AJAEventImpl::SetManualReset
AJAStatus SetManualReset(bool manualReset)
Definition: eventimpl.cpp:100
AJAEventImpl::Clear
AJAStatus Clear(void)
Definition: eventimpl.cpp:63
AJAEventImpl::Signal
AJAStatus Signal(void)
Definition: eventimpl.cpp:39