library/src/threads/BP-LinuxThreads.cc
// destroys all the threads in a list
destroys all the threads in a list
destroys all the threads in a list
int FreeThreadList(P_THREAD_LIST inList)
{
	if(inList == NULL)
		return ERR_FAILURE;
	P_THREAD_LIST next = NULL;
	for(inList = inList->first; inList != NULL; inList = next){
		if(!inList)
			break;
		next = inList->next;
		if(inList->threadDescription)
			bpfree(inList->threadDescription);
		bpfree(inList);
	}
	return ERR_SUCCESS;
}
int FreeThreadList ( P_THREAD_LIST inList ) { if ( inList == NULL ) return ERR_FAILURE ; P_THREAD_LIST next = NULL ; for ( inList = inList -> first ; inList != NULL ; inList = next ) { if ( ! inList ) break ; next = inList -> next ; if ( inList -> threadDescription ) bpfree ( inList -> threadDescription ) ; bpfree ( inList ) ; } return ERR_SUCCESS ; }
destroys all the threads in a list
destroys all the threads in a list
// FreeThreadElement(inList);