Exemple #1
0
static void*
error_thread(void* arg) {
	int ipass = 0;
	FOUNDATION_UNUSED(arg);

	thread_sleep(10);

	for (ipass = 0; ipass < 512; ++ipass) {
		if (error_test_thread())
			return FAILED_TEST;
		thread_yield();
	}

	return 0;
}
Exemple #2
0
void* error_thread( object_t thread, void* arg )
{
	int ipass = 0;

	thread_sleep( 10 );

	for( ipass = 0; ipass < 512; ++ipass )
	{
		if( error_test_thread() )
			return FAILED_TEST;
		thread_yield();
	}

	return 0;
}