discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] pre-cog source doubt


From: Yogesh Dahiya
Subject: Re: [Discuss-gnuradio] pre-cog source doubt
Date: Tue, 11 Jun 2013 10:45:01 +0530

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 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]