Re: [E-devel] about eina_lock

2011-05-15 Thread Cedric BAIL
On Sun, May 15, 2011 at 12:16 PM, Vincent Torri wrote: > On Sun, 15 May 2011, Cedric BAIL wrote: >> On Sat, May 14, 2011 at 10:49 PM, Vincent Torri >> wrote: >>> some questions: >>> >>>  * is it normal that in eina_condition_free(), the mutex is not destroyed >>> ? >> >> Yes. It's only a link to

Re: [E-devel] about eina_lock

2011-05-15 Thread Vincent Torri
On Sun, 15 May 2011, Cedric BAIL wrote: On Sat, May 14, 2011 at 10:49 PM, Vincent Torri wrote: some questions:  * is it normal that in eina_condition_free(), the mutex is not destroyed ? Yes. It's only a link to the real mutex, not a copy. I am thinking about adding refcounting in debug m

Re: [E-devel] about eina_lock

2011-05-15 Thread Cedric BAIL
On Sat, May 14, 2011 at 10:49 PM, Vincent Torri wrote: > some questions: > >  * is it normal that in eina_condition_free(), the mutex is not destroyed ? Yes. It's only a link to the real mutex, not a copy. I am thinking about adding refcounting in debug mode to be sure that mutex still exist and

[E-devel] about eina_lock

2011-05-14 Thread Vincent Torri
some questions: * is it normal that in eina_condition_free(), the mutex is not destroyed ? * in eina_lock_take() #ifdef EINA_HAVE_ON_OFF_THREADS if (!_eina_threads_activated) { #ifdef EINA_HAVE_DEBUG_THREADS assert(pthread_equal(_eina_main_loop, pthread_self())); #endif