|
From: <mla...@us...> - 2007-11-23 04:18:55
|
Revision: 320
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=320&view=rev
Author: mlampard
Date: 2007-11-22 20:19:00 -0800 (Thu, 22 Nov 2007)
Log Message:
-----------
run all threads with default scheduling
Modified Paths:
--------------
trunk/g15daemon-wip/g15daemon/main.c
Modified: trunk/g15daemon-wip/g15daemon/main.c
===================================================================
--- trunk/g15daemon-wip/g15daemon/main.c 2007-11-19 05:37:36 UTC (rev 319)
+++ trunk/g15daemon-wip/g15daemon/main.c 2007-11-23 04:19:00 UTC (rev 320)
@@ -422,19 +422,12 @@
pthread_mutex_init(&g15lib_mutex, NULL);
pthread_attr_init(&attr);
pthread_attr_setstacksize(&attr,512*1024); /* set stack to 512k - dont need 8Mb !! */
- pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM);
- int thread_policy=SCHED_RR;
- pthread_attr_setschedpolicy(&attr,thread_policy);
if (pthread_create(&keyboard_thread, &attr, keyboard_watch_thread, lcdlist) != 0) {
g15daemon_log(LOG_ERR,"Unable to create keyboard listener thread. Exiting");
goto exitnow;
}
pthread_attr_setstacksize(&attr,128*1024);
- /* all other threads have a lower priority... maybe */
- pthread_attr_setscope(&attr,PTHREAD_SCOPE_PROCESS);
- thread_policy=SCHED_OTHER;
- pthread_attr_setschedpolicy(&attr,thread_policy);
if (pthread_create(&lcd_thread, &attr, lcd_draw_thread, lcdlist) != 0) {
g15daemon_log(LOG_ERR,"Unable to create display thread. Exiting");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|