[Toxine-cvs] CVS: toxine/src/plugins vo_x11.c,1.36,1.37
Brought to you by:
f1rmb
From: Daniel Caujolle-B. <f1...@us...> - 2004-07-23 12:51:48
|
Update of /cvsroot/toxine/toxine/src/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1518/plugins Modified Files: vo_x11.c Log Message: fix thread scheduling priority code compilation. Index: vo_x11.c =================================================================== RCS file: /cvsroot/toxine/toxine/src/plugins/vo_x11.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- vo_x11.c 18 Jul 2004 20:55:36 -0000 1.36 +++ vo_x11.c 23 Jul 2004 12:51:39 -0000 1.37 @@ -765,12 +765,17 @@ { pthread_attr_t pth_attrs; +#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING struct sched_param pth_params; +#endif pthread_attr_init(&pth_attrs); + +#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING pthread_attr_getschedparam(&pth_attrs, &pth_params); pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER); pthread_attr_setschedparam(&pth_attrs, &pth_params); +#endif pthread_create(&private->timed_thread, &pth_attrs, timed_loop, (void *)tox); } |