This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Blocking calls in DSRs


On Fri, Aug 20, 2004 at 04:16:46PM +0200, Richard Rauch wrote:
> Hi all,
> 
> Is it allowed to call blocking eCos functions from DSR?
> I wrote a communication handler. This allocates a buffer from a memory pool,
> fills it with the telegram data and post it to a task. But if there are no
> buffers available the DSR would block.

You are not allowed to block. If you are using a memory pool you can
do an none blocking get, ie cyg_mempool_var_try_alloc. If this fails
our pool is full and you have to discard your comminication.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]