Merged changes from svn repository trunk.
authorJohnathan Corgan <jcorgan@corganenterprises.com>
Sun, 16 Aug 2009 01:06:37 +0000 (18:06 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Sun, 16 Aug 2009 01:06:37 +0000 (18:06 -0700)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11601 221aa14e-8319-0410-a670-987f0aec2ac5

Signed-off-by: Johnathan Corgan <jcorgan@corganenterprises.com>
1  2 
gnuradio-core/src/lib/runtime/gr_block_detail.cc
gnuradio-core/src/lib/runtime/gr_block_detail.h

index f36a6c2155e75f36bc8f154896705da869e90d5d,d33dfed8461da2903be450d20b8de9fd4316de53..38d4a13ca57cb48c03a33f364a03a9d8d192d700
@@@ -112,9 -102,14 +112,16 @@@ gr_block_detail::produce (int which_out
  void
  gr_block_detail::produce_each (int how_many_items)
  {
 -  if (how_many_items > 0)
 +  if (how_many_items > 0){
      for (int i = 0; i < noutputs (); i++)
        d_output[i]->update_write_pointer (how_many_items);
 +    d_produce_or |= how_many_items;
 +  }
  }
+ void
+ gr_block_detail::_post(pmt::pmt_t msg)
+ {
+   d_tpb.insert_tail(msg);
+ }
index f32a875ec4019f506e0f4387a8ae0de5c5017c7a,9d63586024fd57030557951a2286476b4c1a2687..c5787a5ad0fd56c72656be3ed69c5406369df227
@@@ -83,10 -78,14 +83,13 @@@ class gr_block_detail 
     */
    void produce_each (int how_many_items);
  
--
+   /*!
+    * Accept msg, place in queue, arrange for thread to be awakened if it's not already.
+    */
+   void _post(pmt::pmt_t msg);
  
 -
    gr_tpb_detail                            d_tpb;     // used by thread-per-block scheduler
 +  int                              d_produce_or;
  
    // ----------------------------------------------------------------------------