library/src/threads/BP-LinuxThreads.cc
// Cancels all threads in a list, terminating them all
Cancels all threads in a list, terminating them all
Cancels all threads in a list terminating them all
int CancelAllThreads(P_THREAD_LIST threadHandle)
{
	if(threadHandle == NULL)
		return ERR_FAILURE;
	for(threadHandle = threadHandle->first;
		threadHandle != NULL;
		threadHandle = threadHandle->next){
				CancelThread(threadHandle);
	}
	return ERR_SUCCESS;
}
int CancelAllThreads ( P_THREAD_LIST threadHandle ) { if ( threadHandle == NULL ) return ERR_FAILURE ; for ( threadHandle = threadHandle -> first ; threadHandle != NULL ; threadHandle = threadHandle -> next ) { CancelThread ( threadHandle ) ; } return ERR_SUCCESS ; }
Cancels all threads in a list, terminating them all
Cancels all threads in a list terminating them all
// ignores failure/success codes