library/src/blockclass/BP-BlockClass.cc
// iterates through the threads list and attempts to destroy
// each thread.
iterates through the threads list and attempts to destroy
each thread.
iterates through the threads list and attempts to destroy each thread .
int Block::DestroyAllThreads()
{
	if (this->threads == NULL)
		return ERR_FAILURE;
	FreeThreadList(this->threads->first);
	this->threads = NULL;
	return ERR_SUCCESS;
}
int Block :: DestroyAllThreads ( ) { if ( this -> threads == NULL ) return ERR_FAILURE ; FreeThreadList ( this -> threads -> first ) ; this -> threads = NULL ; return ERR_SUCCESS ; }
iterates through the threads list and attempts to destroy
each thread.
iterates through the threads list and attempts to destroy each thread .
// destroy the threads list // reset thread pointer // return indicating success