Skip to content

Instantly share code, notes, and snippets.

@amiller
Created December 8, 2010 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiller/733928 to your computer and use it in GitHub Desktop.
Save amiller/733928 to your computer and use it in GitHub Desktop.
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