library/src/threads/BP-LinuxThreads.cc
// Cancels a thread, effectively stopping thread execution
Cancels a thread, effectively stopping thread execution
Cancels a thread effectively stopping thread execution
int CancelThread(P_THREAD_LIST threadHandle)
{
	if(threadHandle == NULL)
		return ERR_FAILURE;
	threadHandle->threadState = BP_THREAD_STATUS_EXITED;
	if( pthread_cancel(threadHandle->threadId) != 0){
		return ERR_FAILURE;
	}
	return ERR_SUCCESS;
}
int CancelThread ( P_THREAD_LIST threadHandle ) { if ( threadHandle == NULL ) return ERR_FAILURE ; threadHandle -> threadState = BP_THREAD_STATUS_EXITED ; if ( pthread_cancel ( threadHandle -> threadId ) != 0 ) { return ERR_FAILURE ; } return ERR_SUCCESS ; }
Cancels a thread, effectively stopping thread execution
Cancels a thread effectively stopping thread execution