library/src/threads/BP-LinuxThreads.cc
// Start threads which aren't already currently running.
Start threads which aren't already currently running.
Start threads which aren ' t already currently running .
BP_ERROR_T BP_StartAllUnstartedThreads(P_BP_THREAD_MANAGER thread_manager)
{
	if(!thread_manager)
		return ERR_FAILURE;
	P_BP_MANAGED_THREAD managed_thread = NULL;
	size_t n = 0;
	for(; n < thread_manager->threads_n; n++)
	{
		managed_thread = thread_manager->threads[n];
		if(managed_thread->current_status == BP_THREAD_STATUS_UNSTARTED)
		{
			BP_StartThread(thread_manager, managed_thread);
		}
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_StartAllUnstartedThreads ( P_BP_THREAD_MANAGER thread_manager ) { if ( ! thread_manager ) return ERR_FAILURE ; P_BP_MANAGED_THREAD managed_thread = NULL ; size_t n = 0 ; for ( ; n < thread_manager -> threads_n ; n ++ ) { managed_thread = thread_manager -> threads [ n ] ; if ( managed_thread -> current_status == BP_THREAD_STATUS_UNSTARTED ) { BP_StartThread ( thread_manager , managed_thread ) ; } } return ERR_SUCCESS ; }
Start threads which aren't already currently running.
Start threads which aren ' t already currently running .
// ensure we have a thread manager // managed thread // set the managed thread // return indicating success