Date: Tue, 16 May 2000 15:18:12 -0600 From: Chuck Paterson <cp@bsdi.com> To: "Jeroen C. van Gelderen" <jeroen@vangelderen.org> Cc: Doug Rabson <dfr@nlsystems.com>, arch@freebsd.org Subject: Re: A new api for asynchronous task execution (2) Message-ID: <200005162118.PAA14892@berserker.bsdi.com>
next in thread | raw e-mail | index | archive | help
"Jeroen C. van Gelderen" wrote on: Tue, 16 May 2000 17:04:55 EDT }Doug Rabson wrote: }[...] }> #define TQ_DEF 0 /* use blocking mutex */ } }Minor nits: } }If this means default, I'd rename it to TQ_DEFAULT. No need to }be cryptic, preprocessors can handle legible names these days. } }Additionally, it may be useful to be able to explicitly specify }TQ_BLOCKING in case the default ever changes. } Just an FYI, the TQ_DEF probably came from the flag passed into the BSD/OS mutex macros which is M_DEF. These are short because the macros often get used when there is sever indenting and it is much easer to read when they don't cause a line split. Also they are used ALL over the place and after looking at the code for a few minutes there is never any doubt what they stand for. Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005162118.PAA14892>