diff options
author | Josh Blum | 2010-04-14 11:06:07 -0700 |
---|---|---|
committer | Josh Blum | 2010-04-14 11:06:07 -0700 |
commit | 7dadb34647bddee0cbb36771370ea2318495e68d (patch) | |
tree | d4e9149b18e638aaaf36a8a8f5f7f74daaec456e /usrp2/host/lib/usrp2_thread.cc | |
parent | 5d7b2c44396ef6991b049d2d15ebf5b822690961 (diff) | |
parent | ad973608d979675755cb537f14ae0a53f71e6489 (diff) | |
download | gnuradio-7dadb34647bddee0cbb36771370ea2318495e68d.tar.gz gnuradio-7dadb34647bddee0cbb36771370ea2318495e68d.tar.bz2 gnuradio-7dadb34647bddee0cbb36771370ea2318495e68d.zip |
Merge branch 'master' of http://gnuradio.org/git/gnuradio into uhd
Diffstat (limited to 'usrp2/host/lib/usrp2_thread.cc')
-rw-r--r-- | usrp2/host/lib/usrp2_thread.cc | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/usrp2/host/lib/usrp2_thread.cc b/usrp2/host/lib/usrp2_thread.cc deleted file mode 100644 index d14770395..000000000 --- a/usrp2/host/lib/usrp2_thread.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2008 Free Software Foundation, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include "usrp2_thread.h" -#include "usrp2_impl.h" -#include <gruel/realtime.h> -#include <gruel/sys_pri.h> -#include <iostream> - -#define USRP2_THREAD_DEBUG 1 - -namespace usrp2 { - - usrp2_thread::usrp2_thread(usrp2::impl *u2) : - omni_thread(NULL, PRIORITY_HIGH), - d_u2(u2) - { - } - - usrp2_thread::~usrp2_thread() - { - // we don't own this, just forget it - d_u2 = 0; - } - - void - usrp2_thread::start() - { - start_undetached(); - } - - void * - usrp2_thread::run_undetached(void *arg) - { - if (gruel::enable_realtime_scheduling(gruel::sys_pri::usrp2_backend()) != gruel::RT_OK) - std::cerr << "usrp2: failed to enable realtime scheduling" << std::endl; - - // This is the first code to run in the new thread context. - d_u2->bg_loop(); - - return 0; - } - -} // namespace usrp2 - |