fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] [PATCH] sampledata caching


From: David Henningsson
Subject: Re: [fluid-dev] [PATCH] sampledata caching
Date: Fri, 12 Oct 2012 10:54:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1

On 10/10/2012 10:29 AM, Kjetil Matheussen wrote:
On 10.10.2012 09:51, Kjetil Matheussen wrote:
Another thing we need to verify is that the sampledata is read-only
once it's been bigendian converted. If it is not, chances are that two
threads would both modify the sampledata, causing problems.


Okay. I'll see if there's any trouble changing the sampledata field
from short* to const short*.


There was no problems setting _fluid_sample_t->data and
_fluid_defsfont_t->sample
to const short*.

The only warning I got which made me somewhat worried was in
fluid_ramsfont.c where
FLUID_FREE(sample->data) is called a couple of times. If this
sample->data pointer
is created in fluid_defsfont.c, it would be a problem, but I guess it
isn't.

No, that should be safe. Defsfonts shouldn't try to interact with ramsfonts anyway.

I've committed your patch now, after fixing a compiler warning and an unprotected read of all_cached_sampledata. Thanks for your contribution! :-)

// David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]