Created
December 8, 2010 21:17
-
-
Save amiller/733928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void init_thread(void) | |
{ | |
thread_running = 1; | |
freenect_init(&ctx, 0); | |
pthread_attr_t pta; | |
pthread_attr_init(&pta); | |
pthread_attr_setschedpolicy(&pta, SCHED_FIFO); | |
pthread_create(&thread, &pta, init, NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment