libblock real-time behavior
Chris Johns
cjohns at cybertec.com.au
Thu Apr 10 01:41:40 UTC 2003
Till Straumann wrote:
> I was (again) thinking of using 'libblock' for adding
> caching to my NFS driver.
>
> However, I'm concerned about preemption-disabled
> sections in libblock.
So you should be.
>
> Are these sections deterministic - what's the
> "longest" preemption-disabled section to be expected?
>
> Code like
>
> DISABLE_PREEMPTION()
>
> ...
>
> free(something);
>
> ...
>
> ENABLE_PREEMPTION();
>
> do not greatly enhance my confidence (I'd rather call 'free'
> outside of the critical section).
>
Is the use of this macro local to libblock ?
If so is it possible to change these defines to LIBBLOCK_LOCK and LIBBLOCK_UNLOCK and
then reference a mutex (see network stack glue for an example) ?
(I ask this with-out actually checking any code)
--
Chris Johns, cjohns at cybertec.com.au
More information about the users
mailing list