[PATCH v6 2/3] Cygwin: cygwait: Make cygwait() reentrant
Takashi Yano
takashi.yano@nifty.ne.jp
Tue Jan 21 22:51:00 GMT 2025
On Tue, 21 Jan 2025 10:00:23 -0800 (PST)
Jeremy Drake wrote:
> Not important, but
>
> On Tue, 21 Jan 2025, Takashi Yano wrote:
>
> > + if (!_my_tls.locals.cw_timer_inuse)
> > + _my_tls.locals.cw_timer_inuse = true;
>
> Couldn't you leave the if out?
That's right, I'm aware of that, but I prioritized making the
intent of the code clearer. I mean, the intent is that "use
_my_tls.locals.cw_timer only if it is not in use".
Thanks!
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin-patches
mailing list