Changeset 276:476028c3d8ed in roaraudio
- Timestamp:
- 07/24/08 16:01:30 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r275 r276 13 13 " --terminate - Terminate after last client quited\n" 14 14 " --restart - Trys to stop an old instance and start a new with new settings\n" 15 " --realtime - Trys to get realtime priority\n" 15 " --realtime - Trys to get realtime priority,\n" 16 " give multible times for being more realtime\n" 16 17 ); 17 18 … … 127 128 g_terminate = 1; 128 129 } else if ( strcmp(k, "--realtime") == 0 ) { 129 realtime = 1;130 realtime++; 130 131 131 132 } else if ( strcmp(k, "-R") == 0 || strcmp(k, "--rate") == 0 ) { … … 228 229 if ( realtime ) { 229 230 errno = 0; 230 nice(-5 );231 nice(-5*realtime); // -5 for each --realtime 231 232 if ( errno ) 232 233 ROAR_WARN("Can not decrease nice value by 5: %s", strerror(errno)); 234 235 #ifdef __linux__ 236 if ( ioprio_set(IOPRIO_WHO_PROCESS, getpid(), IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 0)) == -1 ) 237 ROAR_WARN("Can not set io priority: %s", strerror(errno)); 238 #endif 233 239 } 234 240
Note: See TracChangeset
for help on using the changeset viewer.