diff options
author | Johnathan Corgan | 2010-04-11 13:30:45 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-04-11 13:30:45 -0700 |
commit | 290fc2315a6b7f2d2bc6b98318783e3278a97453 (patch) | |
tree | 9cbc354baaeb7a6ce50e97718903d221ada1d194 /gruel/src/lib | |
parent | 1ae689ff9238dcffbf65881b8ca03aa8df3844aa (diff) | |
download | gnuradio-290fc2315a6b7f2d2bc6b98318783e3278a97453.tar.gz gnuradio-290fc2315a6b7f2d2bc6b98318783e3278a97453.tar.bz2 gnuradio-290fc2315a6b7f2d2bc6b98318783e3278a97453.zip |
Removed omnithreads dependency from libusrp2
Diffstat (limited to 'gruel/src/lib')
-rw-r--r-- | gruel/src/lib/Makefile.am | 3 | ||||
-rw-r--r-- | gruel/src/lib/thread.cc | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/gruel/src/lib/Makefile.am b/gruel/src/lib/Makefile.am index b21f8023c..6bde9ee27 100644 --- a/gruel/src/lib/Makefile.am +++ b/gruel/src/lib/Makefile.am @@ -1,5 +1,5 @@ # -# Copyright 2008,2009 Free Software Foundation, Inc. +# Copyright 2008,2009,2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -45,6 +45,7 @@ MSG_LIB = msg/libmsg.la libgruel_la_SOURCES = \ realtime.cc \ sys_pri.cc \ + thread.cc \ thread_body_wrapper.cc \ thread_group.cc diff --git a/gruel/src/lib/thread.cc b/gruel/src/lib/thread.cc new file mode 100644 index 000000000..d8f77b506 --- /dev/null +++ b/gruel/src/lib/thread.cc @@ -0,0 +1,35 @@ +/* -*- c++ -*- */ +/* + * Copyright 2010 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio 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, or (at your option) + * any later version. + * + * GNU Radio 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, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <gruel/thread.h> + +namespace gruel { + + boost::system_time + get_new_timeout(double secs) + { + return boost::get_system_time() + boost::posix_time::milliseconds(long(secs*1e3)); + } + +} |