tiles & memory

Boudewijn Rempt boud at valdyas.org
Thu Oct 12 07:56:51 CEST 2006


On Thursday 12 October 2006 00:06, Bart Coppens wrote:
> 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.

Oh, I absolutely like your RAII idea, too, definitely.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20061012/4331bf85/attachment.pgp 


More information about the kimageshop mailing list