CHECKr(pthread_create (&thread[0], attrp, trig_loop, 0)); CHECKr(pthread_create (&thread[1], attrp, log_loop, 0));
CHECKr(pthread_create (&thread[0], NULL, trig_loop, NULL)); CHECKr(pthread_create (&thread[1], NULL, log_loop, NULL));
floatloop(pthread_attr_t *attrp){	pthread_t thread[2];	int *x, *y;	CHECKr(pthread_create (&thread[0], attrp, trig_loop, 0));	CHECKr(pthread_create (&thread[1], attrp, log_loop, 0));	CHECKr(pthread_join(thread[0], (void **) &x));		CHECKr(pthread_join(thread[1], (void **) &y));		/* Return 0 for success */	return ((*y == float_failed)?2:0) | 	       ((*x == float_failed)?1:0);}