done_damn_it = 0; while (! done_damn_it)
ExitMainLoop = PR_FALSE; while (! ExitMainLoop)
void MyMainLoop( void ) {//	printf ("kedl: start main loop!\n"); fflush(stdout);	done_damn_it = 0;	while (! done_damn_it)	{//		printf ("kedl: process event\n"); fflush(stdout);		PtProcessEvent();//		printf ("kedl: processed event\n"); fflush(stdout);	}}