On Sun, Sep 18, 2016 at 2:03 PM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Thu, 15 Sep 2016 08:00:46 -0300 Gustavo Sverzut Barbieri
> <barbi...@gmail.com> said:
>
>> isn't it better to check in ecore_thread_cancel() if the thread was
>> already created?
>
> that'd require keeping track of every thread we create, looking up in that
> list/table ever time etc. ... like eoid does. eina_thread stuff is are ally a
> tiny tiny tiny thin wrapper over posix (or windows or osx) threading - same
> with locks/semaphores etc. at this level such a complex check isn't really 
> worth
> it.

there is a single place inside ecore_thread_cancel() that calls this
function and it knows if t->self is 0 before calling.




-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890

------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to