This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pthread] pthread+printf may have bugs


It is strange that the error disappeared if replacing any cygwin1.dll
on the snapshot page
    http://cygwin.com/snapshots/
For these versions, I see a more line "Huh?  No /etc/fstab file?
Using default root and cygdrive prefix..." was printed.

By the way, does anybody know where can I find the pthread source for
cygwin? is it pthread-win32? Thanks ..
I want to look into it.


2008/12/24 陈晓晖 <xhchen8018@gmail.com>:
> Hi,
>
>    I found that pthread may stop work if using printf in thread.
> I'm not sure that printf is thread safe or not, so I tried to wrap the
> printf with a mutex, but the problem still exists.
> After I removed all printfs, everything is OK.
>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]