[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: translator enhancement needed, correction
- To: <heh>, <mark>
- Subject: Re: translator enhancement needed, correction
- From: Michael McClary <michael>
- Date: Sun, 21 Jan 90 06:04:37 PST
- Cc: <dean>, <xtech>
> From mark Sat Jan 20 13:38:43 1990
>
> #define CRITICAL_BLOCK(sema4Expr,block) { \
> PLANT_BOMB(mutex,mutex); \
> (sema4Expr)->p(); \
> ARM_BOMB(mutex,(sema4Expr)); \
> {block}
> }
>
> P.S. The above code has not been tested, but *should* work (he said
> sheepishly) as it is so similar to MUTEX_BEGIN_WITH_EXPR
The "{}"s around "block" are redundant (because a set will be
supplied by the user), but a "\" is needed after that line.
Other than that it looks right (he said assertively, not having
tested the code, either).
B-)
michael