[Webkit-unassigned] [Bug 22614] Need to add Win32 implementation of ThreadSpecific.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 3 18:26:17 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22614





------- Comment #4 from jianli at chromium.org  2008-12-03 18:26 PDT -------
(In reply to comment #2)
> (From update of attachment 25697 [review])
> > -#if USE(PTHREADS) || PLATFORM(WIN)
> > +#if USE(PTHREADS) || PLATFORM(WIN) || PLATFORM(WIN_OS)
> 
> No need to keep PLATFORM(WIN), because it can only be set if PLATFORM(WIN_OS)
> is set.
Removed.
> 
> > +#if USE(PTHREADS) || PLATFORM(WIN)
> >      pthread_key_t m_key;
> 
> Similarly, I think this test should be just USE(PTHREADS).
Removed.
> 
> > +template<typename T>
> > +inline void ThreadSpecific<T>::destroy(void* ptr)
> 
> What calls destroy() when a thread exits? Per
> <http://msdn.microsoft.com/en-us/library/ms686801(VS.85).aspx>, data kept in
> per-thread storage must be destroyed manually in a DLL_THREAD_DETACH callback.
> 
> r-, because I think that per-thread data leaks.
Though MSDN says that it is expected to call TlsFree in a DLL_THREAD_DETACH
callback, it is not absolutely required. We can still call TlsFree in other
place.
> 


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list