Doubt on AllocateBuffer and UseBuffer
I am having a doubt on AllocateBuffer and UseBuffer. The definition says that component shall return from AllocateBuffer function within 5milliseconds whereas it shall return from UseBuffer 20 milliseconds. Since AllocateBuffer has to allocate both buffer header and a buffer of specified size,AllocateBuffer function should be given more time than UseBuffer in which only allocation of buffer header is done. If I am wrong please correct me.
UseBuffer and AllocateBuffer
According to the IL 1.1 specification, AllocateBuffer is only used to allocate buffers which are used for communication between the IL client and a component.
UseBuffer on the other hand can be used to allocate buffers which are used for communication between tunneled components. So if you call UseBuffer on component "A"'s output port, which is connected to component "B"'s input port, then "A"'s UseBuffer call may further call UseBuffer on "B" and so this will take longer. Furthermore, if buffer sharing is enabled on "B" then B will take longer to process this request.
Re: Doubt on AllocateBuffer and UseBuffer
As has been said, the specification uses "should", i.e. a recommendation. Conformant components may take longer.
Originally Posted by maks78in
AllocateBuffer is only used in base profile i.e. a single component being used by an IL client. UseBuffer can be used in tunnelled IL chains. Here the buffer may be shared by the component along the IL chain, so this has a higher expected time upper-bound.