On Mon, 13 Jun 2011 17:06:20 +0200 (CEST) Vincent Torri <[email protected]> said:
> > > On Mon, 13 Jun 2011, Carsten Haitzler (The Rasterman) wrote: > > > On Thu, 2 Jun 2011 09:52:02 +0200 (CEST) Vincent Torri <[email protected]> > > said: > > > > well the comments and printfs say whats going on. LKT is try get lock. if it > > stays locked for too long it decides there is a deadlock. why is ret ALWAYS > > fails. that means something is locking it almost ALWAYS.without unlocking > > it, so some unlock somewhere is not doign the wright thing? > > there is no lock stuff when async preload is disabled. So the macro LKT is > the numerical value 0 and is expanded as 0 in > > ret = LKT(im->cache.lock); > > so ret is *always* 0 when async preload is disabled. It's not a problem of > some wrong locking/unlocking of a mutex, as there is *no* mutex when async > preload is disabled. > > So I think that this code (when SCALECACHE is defined to 1) should be > added only if async preload is enabled. ooh when disabled. hmmm. good point tho the whole LKU/LKL/LKT thing was meant to make life easy and remove all the #ifdef jungle. from the code. i think LKT should be defined to be true in the case of no thread support... > Vincent > > > > >> > >> hey, > >> > >> currently, on Windows, i build evas without async preload (expedite > >> segfault in evas_object_text, i don't know why at all). > >> > >> The problem of building evas without async preload is that there is a > >> plethora of messages that are sidplayed in the terminal. The reason is: > >> > >> 1) in evas_common.h, LKT is defined as 0 > >> > >> 2) in evas_image_scalecache.c, the code > >> > >> #if 1 > >> ret = LKT(im->cache.lock); > >> if (ret == EINA_FALSE) /* can't get image lock */ > >> > >> is the problem. ret is always 0, hence all those messages in the terminal > >> (see the body of the check) > >> > >> What can be done to avoid that problem ? > >> > >> Vincent > >> > >> ------------------------------------------------------------------------------ > >> Simplify data backup and recovery for your virtual environment with > >> vRanger. Installation's a snap, and flexible recovery options mean your > >> data is safe, secure and there when you need it. Data protection magic? > >> Nope - It's vRanger. Get your free trial download today. > >> http://p.sf.net/sfu/quest-sfdev2dev > >> _______________________________________________ > >> enlightenment-devel mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > >> > > > > > > -- > > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > > The Rasterman (Carsten Haitzler) [email protected] > > > > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ 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
