Multithreading problems

Rich Felker dalias at aerifal.cx
Sat Aug 5 17:53:17 UTC 2006


On Wed, Aug 02, 2006 at 04:49:28PM -0700, John Clark wrote:
> However, one must always put '<pthread.h> at the beginning of all code 
> which calls anything
> having to do with any libc or system call. While there may be some calls 
> that are by nature 'multithread'

This is totally unreasonable and not required or recommended by posix,
and in fact not possible if some of your code modules are plain C and
not posix/pthread dependent. Are you sure the real issue isn't the
need for -D_REENTRANT or something similar?

Rich




More information about the uClibc mailing list