Example #1
0
/**
 * @fn startLocation(void* ptr)
 * @brief New a Location Class and start to check location
 * @param NULL
 */
void* startLocation(void *ptr) {
	int canCancel = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
	if (canCancel != 0) {
		printf("This Poke Thread can not be cancelled.\n");
	}

	Location location;
	location.doLoop();
	return NULL;
}