rootfs/aboriginal-1.4.5/sources/root-filesystem/src/thread-hello2.c
// Function for new thread to execute.
Function for new thread to execute.
Function for new thread to execute .
void *hello_thread(void *thread_data)
{
	struct thread_info *ti = (struct thread_info *)thread_data;
	for (;;) {
		unsigned len;
		char *data;
		thread_receive(ti, &data, &len);
		if (!data) break;
		printf("%.*s", len, data);
		free(data);
	}
	return 0;
}
void * hello_thread ( void * thread_data ) { struct thread_info * ti = ( struct thread_info * ) thread_data ; for ( ; ; ) { unsigned len ; char * data ; thread_receive ( ti , & data , & len ) ; if ( ! data ) break ; printf ( " " , len , data ) ; free ( data ) ; } return 0 ; }
Function for new thread to execute.
Function for new thread to execute .