Hey,

On Tue, 7 Jun 2011, Ulrich Eckhardt wrote:

> The functions looks like this:
>
> int _ecore_thread_win32_join(win32_thread *x, void **res)
> {
>  if (!PHE(x, PHS()))
>    {
>      WaitForSingleObject(x->thread, INFINITE);
>      CloseHandle(x->thread);
>    }
>  if (res) *res = x->val;
>
>  return 0;
> }
>
> What I'm wondering is if there shouldn't be a "free(x);" before the return
> statement. At least the complementary _ecore_thread_win32_create() will
> allocate the structure using malloc(). Hopefully someone with better insight
> there can verify/falsify it...

It's nice to see someone interested in the win32 code :)

Honestly, i'm not good at all with threads, pthreads or wthreads. Does 
pthread_join() automatically destroy its first parameter (the calling 
thread) when it returns ?

Vincent

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to