This is the mail archive of the cygwin-developers@cygwin.com 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: [bug found] Re: cygwin hang problem


On Fri, Jul 19, 2002 at 10:30:06PM -0400, Christopher Faylor wrote:
>>So the locking needs some changing in the dll linkage code.  There is
>>in fact a comment above dll_func_load that the code may not be thread
>>safe!
>
>Right.
>
>What two threads are accessing this info simultaneously?  It's probably
>easier to fix that than to introduce locking.

I'd still like to find what threads are simultaneously looking for the
same info but, in the meantime, I've rewritten that particular section
of code so that there is only one memory write, which should be thread
safe.

Does it work any better now?

cgf


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