apoxi/include/Applications/SocketTest/FfsTestThread.hpp
Kirill Zhumarin d7d9bcf23a apoxi headers
2025-03-27 22:28:46 +03:00

49 lines
1.6 KiB
C++

/* ------------------------------------------------------------------------
Copyright (C) COMNEON electronic technology GmbH & Co. OHG.
All rights reserved.
------------------------------------------------------------------------
This document contains proprietary information belonging to COMNEON.
Passing on and copying of this document, use and communication of its
contents is not permitted without prior written authorisation.
------------------------------------------------------------------------ */
#if !defined(ApoxiApp_FfsTestThread_hpp)
#define ApoxiApp_FfsTestThread_hpp
#include <Kernel/Os/Os.hpp>
#include <SocketTest/FfsTests.hpp>
class FfsTestThread : public Thread
{
typedef Thread Base;
public:
FfsTestThread();
virtual ~FfsTestThread();
virtual INT ThreadFn();
static void SetRunning(BOOLEAN bRunning) { m_running = bRunning;
m_nCurrentTest = 0; };
static BOOLEAN GetRunning() { return m_running; }
static UINT32 GetCurrentTest() { return m_nCurrentTest; }
void UpdateTestInfo(UINT32 aError);
void SetMutex(Mutex* aMutex) { ASSERT_DEBUG(aMutex != NULL);
m_disp_mutex = aMutex; }
private:
void ExecuteTests();
BOOLEAN IsEnable();
static BOOLEAN m_running;
static UINT32 m_nCurrentTest;
FfsTests m_tests;
Mutex *m_disp_mutex;
FfsTestBase* m_test_info;
};
#endif // ApoxiApp_FfsTestThread_hpp