[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Tile manager and Mutex and desinging for threading
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2007-06-04 20:52:22
Message-ID: 200706042252.25921.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 04 June 2007, Cyrille Berger wrote:

> I don't think one lock on the datamanager lock the entire paint device, as
> you only need to "speak" with it when fetching a tile. So right, one lock
> on the tilemanager, serialize access to the swapfile, while one lock to the
> datamanager serialize getting new tiles.

Isn't the memory for new tiles also coming from the tilemanager?

> > And, yes, a dedicated thread for memory management would be cool. It
> > would also be the place to do the compression of (undo) tiles before
> > swapping them out.
>
> yup. I hope Bart is taking notes of cool stuff to do :D

I've just committed a small cleanup -- remove the two separate locks for pool 
and swap -- because all of the tilemanager was already locked by the BKL so 
the extra two locks were superfluous.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

["signature.asc" (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic