library/src/threads/BP-LinuxThreads.cc
// prints one element from a thread chain
prints one element from a thread chain
prints one element from a thread chain
void PrintThreadElement(P_THREAD_LIST inList){
	if(inList == NULL)
		return;
	printf("\n [+] Thread List: %p - (%s) ", inList, inList->threadDescription);
	printf("\n\t list->first: %p", inList->first);
	printf("\n\t list->prev : %p", inList->prev);
	printf("\n\t list->next : %p", inList->next);
	printf("\n\t\t Start Function Pointer: %p", (void *) inList->startRoutine);
	printf("\n\t\t Shared Data Pointer   : %p", inList->sharedData);
	printf("\n\t\t Shared Data Size      : %i", inList->sharedDataSize);
	printf("\n\t\t Thread ID             : %u", inList->threadId);
}
void PrintThreadElement ( P_THREAD_LIST inList ) { if ( inList == NULL ) return ; printf ( " \n " , inList , inList -> threadDescription ) ; printf ( " \n \t " , inList -> first ) ; printf ( " \n \t " , inList -> prev ) ; printf ( " \n \t " , inList -> next ) ; printf ( " \n \t \t " , ( void * ) inList -> startRoutine ) ; printf ( " \n \t \t " , inList -> sharedData ) ; printf ( " \n \t \t " , inList -> sharedDataSize ) ; printf ( " \n \t \t " , inList -> threadId ) ; }
prints one element from a thread chain
prints one element from a thread chain
// print out data elements in readable form