[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r5520 - gnuradio/trunk/gnuradio-core/src/lib/runtime
From: |
eb |
Subject: |
[Commit-gnuradio] r5520 - gnuradio/trunk/gnuradio-core/src/lib/runtime |
Date: |
Tue, 22 May 2007 21:27:07 -0600 (MDT) |
Author: eb
Date: 2007-05-22 21:27:07 -0600 (Tue, 22 May 2007)
New Revision: 5520
Modified:
gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_realtime.cc
Log:
fix calculation of mid-pri for realtime_scheduling
Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_realtime.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_realtime.cc 2007-05-23
01:27:31 UTC (rev 5519)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_realtime.cc 2007-05-23
03:27:07 UTC (rev 5520)
@@ -39,7 +39,7 @@
gr_enable_realtime_scheduling()
{
int policy = SCHED_FIFO;
- int pri = (sched_get_priority_max (policy) - sched_get_priority_min
(policy)) / 2;
+ int pri = (sched_get_priority_max (policy) + sched_get_priority_min
(policy)) / 2;
int pid = 0; // this process
struct sched_param param;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r5520 - gnuradio/trunk/gnuradio-core/src/lib/runtime,
eb <=