summaryrefslogtreecommitdiff
path: root/gruel/src/lib/realtime.cc
diff options
context:
space:
mode:
authoreb2008-09-23 21:57:31 +0000
committereb2008-09-23 21:57:31 +0000
commit801b22a99512ed3dfd2b92bfc597bfc3451ccbc9 (patch)
treed515b24be4fb7feec2ff46da755e2d7e80bd2650 /gruel/src/lib/realtime.cc
parent16699b8ac2ab0c98ad3593b573e409ce39f9eb7c (diff)
downloadgnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.tar.gz
gnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.tar.bz2
gnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.zip
usrp2 work-in-progress
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9643 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gruel/src/lib/realtime.cc')
-rw-r--r--gruel/src/lib/realtime.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gruel/src/lib/realtime.cc b/gruel/src/lib/realtime.cc
index d1907b3c1..7397cf3d3 100644
--- a/gruel/src/lib/realtime.cc
+++ b/gruel/src/lib/realtime.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2006,2007 Free Software Foundation, Inc.
+ * Copyright 2006,2007,2008 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -73,6 +73,9 @@ namespace gruel {
int max_real_pri = sched_get_priority_max(policy);
int pri = rescale_virtual_pri(p.priority, min_real_pri, max_real_pri);
+ // FIXME check hard and soft limits with getrlimit, and limit the value we ask for.
+ // fprintf(stderr, "pthread_setschedparam: policy = %d, pri = %d\n", policy, pri);
+
struct sched_param param;
memset (&param, 0, sizeof (param));
param.sched_priority = pri;
@@ -106,6 +109,9 @@ namespace gruel {
int max_real_pri = sched_get_priority_max(policy);
int pri = rescale_virtual_pri(p.priority, min_real_pri, max_real_pri);
+ // FIXME check hard and soft limits with getrlimit, and limit the value we ask for.
+ // fprintf(stderr, "sched_setscheduler: policy = %d, pri = %d\n", policy, pri);
+
int pid = 0; // this process
struct sched_param param;
memset(&param, 0, sizeof(param));