[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9065 - usrp2/trunk/host/apps
From: |
eb |
Subject: |
[Commit-gnuradio] r9065 - usrp2/trunk/host/apps |
Date: |
Wed, 30 Jul 2008 18:27:56 -0600 (MDT) |
Author: eb
Date: 2008-07-30 18:27:55 -0600 (Wed, 30 Jul 2008)
New Revision: 9065
Modified:
usrp2/trunk/host/apps/tx_samples.cc
Log:
added realtime to tx_sample
Modified: usrp2/trunk/host/apps/tx_samples.cc
===================================================================
--- usrp2/trunk/host/apps/tx_samples.cc 2008-07-30 22:49:57 UTC (rev 9064)
+++ usrp2/trunk/host/apps/tx_samples.cc 2008-07-31 00:27:55 UTC (rev 9065)
@@ -23,6 +23,7 @@
#include <iostream>
#include <complex>
#include <getopt.h>
+#include <gr_realtime.h>
#include "strtod_si.h"
#define T_NOW (-1)
@@ -160,6 +161,10 @@
return 1;
}
+ gr_rt_status_t rt = gr_enable_realtime_scheduling();
+ if (rt != RT_OK)
+ std::cerr << "failed to enable realtime scheduling\n";
+
usrp2_basic *u2 = new usrp2_basic();
if (!u2->open(interface)){
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9065 - usrp2/trunk/host/apps,
eb <=