diff options
author | Johnathan Corgan <jcorgan@corganenterprises.com> | 2010-04-18 20:13:47 -0700 |
---|---|---|
committer | Eric Blossom <eb@comsec.com> | 2010-04-22 22:04:21 -0700 |
commit | 052638a76f3c07be744b603c3ba0f392ccc1569b (patch) | |
tree | 943b6bca1759d715908a0d2e1eac711bc257ae9c /gcell/lib/runtime/gc_client_thread_info.h | |
parent | 7389f7a46fbad90dc1ae2c8232f770b03c27a38f (diff) |
Convert gcell to use boost::threads instead of omnithread.
Passes make check.
Diffstat (limited to 'gcell/lib/runtime/gc_client_thread_info.h')
-rw-r--r-- | gcell/lib/runtime/gc_client_thread_info.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcell/lib/runtime/gc_client_thread_info.h b/gcell/lib/runtime/gc_client_thread_info.h index 9f46ecca77..e49c070975 100644 --- a/gcell/lib/runtime/gc_client_thread_info.h +++ b/gcell/lib/runtime/gc_client_thread_info.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2007 Free Software Foundation, Inc. + * Copyright 2007,2010 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -21,7 +21,7 @@ #ifndef INCLUDED_GC_CLIENT_THREAD_INFO_H #define INCLUDED_GC_CLIENT_THREAD_INFO_H -#include <gnuradio/omnithread.h> +#include <boost/thread.hpp> #include <boost/utility.hpp> enum gc_ct_state { @@ -40,7 +40,7 @@ enum gc_ct_state { class gc_client_thread_info : boost::noncopyable { public: gc_client_thread_info() : - d_free(1), d_cond(&d_mutex), d_state(CT_NOT_WAITING), + d_free(1), d_cond(), d_state(CT_NOT_WAITING), d_jobs_done(0), d_njobs_waiting_for(0), d_jobs_waiting_for(0){ } @@ -59,10 +59,10 @@ public: uint16_t d_client_id; //! hold this mutex to manipulate anything below here - omni_mutex d_mutex; + boost::mutex d_mutex; //! signaled by event handler to wake client thread up - omni_condition d_cond; + boost::condition_variable d_cond; //! Is this client waiting? gc_ct_state d_state; |