tiles & memory

Bart Coppens kde at bartcoppens.be
Thu Oct 12 00:06:06 CEST 2006


On Thursday 12 October 2006 00:00, Boudewijn Rempt wrote:
> On Wed, 11 Oct 2006, Cyrille Berger wrote:
> > As for locking too big area, we can limit size, like preventing the user
> > to lock in memory more tiles than the maximum numbers of allowed tiles.
> That's one reason for the boolean return value: if it's false, the
> region is _not_ locked.
That sounds reasonable, yes. I'd still rather see it neatly packaged in a RAII 
class, though. The only problem is that people will need to write (and test!) 
two code paths: one with the lock being successful, and one with the lock 
failing. But that can't be helped then, I guess.

Bart


More information about the kimageshop mailing list