Browse Source

Merge pull request #16: la_mojo: fix the build after the YOLO filter addition

Defines kernelEventFilterYOLO::m_fThreadProc (link error: undefined vtable), initialises the filter data and silences the new warnings. See PR #16 for details.
master
ClaudeAI 25 minutes ago
parent
commit
7428b29928
  1. 1
      lib/App/common/dataBinder.h
  2. 17
      lib/App/common/kernelEventFilterYOLO.cpp

1
lib/App/common/dataBinder.h

@ -802,6 +802,7 @@ class dataBinder
return 0;
}
virtual YOLO_FILTER_DATA * getYOLOFilterData( uint32_t flt_id ){
if ( flt_id ) return NULL;
return NULL;
}
virtual bool fillShadow2D(uint32_t ID, SHADOW & SH)

17
lib/App/common/kernelEventFilterYOLO.cpp

@ -18,6 +18,8 @@ basicEventHandler(),
basicThread()
{
m_pLog = basicLogCollection::getInstance();
// validate() compares it with the database copy: must start defined
memset(&m_sYOLOFilterData, 0, sizeof(YOLO_FILTER_DATA));
}
kernelEventFilterYOLO::~kernelEventFilterYOLO()
@ -41,6 +43,8 @@ bool kernelEventFilterYOLO::validate()
return false;
}
bool kernelEventFilterYOLO::validateTarget(uint32_t DevID, TARGET_DATA * ptr){
(void) DevID; // ToDo: YOLO filtering
(void) ptr;
return false;
}
bool kernelEventFilterYOLO::initFilter(){
@ -50,5 +54,18 @@ bool kernelEventFilterYOLO::stopFilter(){
return false;
}
bool kernelEventFilterYOLO::dispatchEvent(EVENT_CONTAINER * Evt){
(void) Evt; // ToDo: YOLO event handling
return false;
}
// Worker thread (declared in the header but not defined: "undefined reference to vtable for
// kernelEventFilterYOLO" at link time). Placeholder loop until the YOLO processing is added.
void kernelEventFilterYOLO::m_fThreadProc(void)
{
m_bThreadStatus = TH_WORKING;
pthread_setname_np(pthread_self(), "filterYOLO");
while (m_bThreadStatus < TH_ENDED)
{
SLEEP(DEFAULT_THREAD_SLEEP_TIME);
};
}
Loading…
Cancel
Save