diff options
author | eb | 2009-07-15 02:39:28 +0000 |
---|---|---|
committer | eb | 2009-07-15 02:39:28 +0000 |
commit | d4110d3f9ce3038a13051b00060004554636e48b (patch) | |
tree | 2b7f33bdc28a5228419815bcbcf964e27d39b7b9 /pmt/src/lib/pmt_pool.h | |
parent | 2e7c5c717a53aaa64ee46f154d5792e7118599ed (diff) | |
download | gnuradio-d4110d3f9ce3038a13051b00060004554636e48b.tar.gz gnuradio-d4110d3f9ce3038a13051b00060004554636e48b.tar.bz2 gnuradio-d4110d3f9ce3038a13051b00060004554636e48b.zip |
Removed pmt dependency on omnithreads, now dependent on boost::threads
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11444 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'pmt/src/lib/pmt_pool.h')
-rw-r--r-- | pmt/src/lib/pmt_pool.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pmt/src/lib/pmt_pool.h b/pmt/src/lib/pmt_pool.h index dd63d44a6..8004a65e4 100644 --- a/pmt/src/lib/pmt_pool.h +++ b/pmt/src/lib/pmt_pool.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2007 Free Software Foundation, Inc. + * Copyright 2007,2009 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -22,8 +22,8 @@ #define INCLUDED_PMT_POOL_H #include <cstddef> -#include <gnuradio/omnithread.h> #include <vector> +#include <boost/thread.hpp> /*! * \brief very simple thread-safe fixed-size allocation pool @@ -37,8 +37,9 @@ class pmt_pool { struct item *d_next; }; - omni_mutex d_mutex; - omni_condition d_cond; + typedef boost::unique_lock<boost::mutex> scoped_lock; + mutable boost::mutex d_mutex; + boost::condition_variable d_cond; size_t d_itemsize; size_t d_alignment; |