RFC: getc() and putc() as macros
Tim Robbins
tjr at freebsd.org
Sat Mar 13 17:07:57 PST 2004
On Sat, Mar 13, 2004 at 10:05:14AM -0500, Daniel Eischen wrote:
> On Sat, 13 Mar 2004, Tim Robbins wrote:
>
> > The patch below re-adds macro versions of getc(), getchar(), putc(),
> > putchar(), feof(), ferror(), fileno() and clearerr(), using the value of
> > __isthreaded to decide between the fast inline single-threaded code and
> > the more general function equivalent (as suggested by Alfred). Is this
> > approach safe?
>
> I don't really like this. It exposes __isthreaded and others
> that are implementation.
Can you think of a better way?
Tim
More information about the freebsd-threads
mailing list