63 fprintf(stderr,
"%s\n",
"Stream not started");
64 throw(
"Stream not started" );
67 res = pthread_attr_setdetachstate(&
m_attrThread, PTHREAD_CREATE_JOINABLE);
69 fprintf(stderr,
"%s\n",
"Stream not started");
70 throw(
"Stream not started" );
75 fprintf(stderr,
"%s\n",
"Stream not started");
76 throw(
"Stream not started" );
84 throw except_info(
"%s - exception during execute", __FUNCTION__ );
141 printf(
"\n\n\n\n\n\n\n \n Error in thread:\n%s\n \n", err.
info.c_str());
149 printf(
"\n\n\n \n Unknow error in thread\n \n" );
pthread_mutex_t m_ResultStartMutex
virtual void GetResultInThread()=0
Show result.
virtual void Start()
Start of test.
static void * ThreadFunc(void *lpvThreadParm)
TF_TestThread(TableEngine *pTable, int argc, char **argv)
virtual void PrepareInThread()=0
Prepare test.
pthread_mutex_t m_StartMutex
Base class for testing device.
except_info_t except_info(const char *fmt,...)
virtual int isComplete()
Return 1 when test is complete.
Base class for application with thread.
virtual int Prepare(int cnt)
Prepare test.
pthread_mutex_t m_ResultCompleteMutex
virtual void GetResult()
Show result of test.
pthread_mutex_t m_ThreadExitMutex
virtual void CleanupInThread()=0
Free any resource.
virtual void Stop()
Stop of test.
pthread_attr_t m_attrThread
virtual void Run()=0
Main body of user test.