Okay I found in older grextras (
https://github.com/ncorgan/grextras/blob/master/include/gruel/pmt_mgr.h)

/*
 * ------------------------------------------------------------------------
 *      Manage a collection of PMTs -> memory wise
 *
 * When a PMT reference count becomes zero, the pmt and contents is deleted.
 * With a manager, the PMT will not be deleted, but released to the manager.
 * Then, the PMT can be acquired again for re-use by the user.
 *
 * This offers 2 benefits:
 *  - Avoids expensive memory allocation overhead (re-use is key)
 *  - An upstream producer can block until resources become released
 * ------------------------------------------------------------------------
 */



On Tue, Jun 11, 2013 at 10:13 AM, Yogesh Dahiya <yogeshd2...@gmail.com>wrote:

>
> I was looking at the source of pre-cog and there is this piece of code which 
> i am not able to locate ( pmt_mgr() ) in the documentation.
>
> self.mgr = pmt.pmt_mgr()
> for i in range(64):
>       self.mgr.set(pmt.pmt_make_blob(10000))
> blob = self.mgr.acquire(True )
>
>
> There is no reference of pmt_mgr in documentation. Can somebody expalain its 
> operation or point to relevant docs.
>
> Thanks
>
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to