[ECOS] Blocking calls in DSRs
Andrew Lunn
andrew@lunn.ch
Fri Aug 20 14:28:00 GMT 2004
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
More information about the Ecos-discuss
mailing list