Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Example - start a thread

After creating thread 1 and scheduling its callback, c_samplethread_launchthreads() starts thread 1 by calling ITHREAD_Start(), as shown in the example below. The third argument to ITHREAD_Start() specifies the function that will be called when the thread is started.

   if(AEE_SUCCESS != (ret = ITHREAD_Start( pMe->piThread1, 128,
               (PFNTHREAD)c_samplethread_thread1, (void *)pMe))){
      return FALSE;
   }