SoundHandler::~SoundHandler() { ExitRequested = true; ThreadSignal(); ClearDecoderList(); }
SoundHandler::~SoundHandler() { ExitRequested = true; ThreadSignal(); LWP_JoinThread(SoundThread, NULL); SoundThread = LWP_THREAD_NULL; if(ThreadStack) free(ThreadStack); ClearDecoderList(); }
/*------------------------------------------------------------------------ Parameters: Description: Return Values: 0 on success, < 0 otherwise. ------------------------------------------------------------------------*/ static Notify_value winPoll(void) { static int ncalls = 0 ; if (ncalls++ == 4) ThreadSignal(0, SIG_ALL) ; ThreadYield() ; /* ThreadSleep(TID_SELF, 100) ;*/ return(NOTIFY_DONE) ; }