Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Mon, Nov 01, 2010 at 09:24:09AM +0000, Caolán McNamara wrote:
On Sun, 2010-10-31 at 23:04 -0500, Norbert Thiebaud wrote:
    ::osl::MutexGuard aSolarGuard (::osl::Mutex::getGlobalMutex());
    Paint(rEvent.UpdateRect);

I'm thinking I should change this guard with a SolarMutexGuard aSolarGuard;

Someone has an opinion on this ?

Because it's protecting a "Paint" which generally would use the VCL
drawing/widget stuff which is not thread-safe,
(http://wiki.services.openoffice.org/wiki/Terms/Solar_Mutex I reckon
you're right and it should be a SolarMutexGuard that's taken there.

caolanm->dtardon: Did you have something vaguely similiar in the desktop
extension gui-updating thread at one stage, any opinion ?


Yes, but the situation here is different. The Paint method is actually
defined in the same class and has nothing in common with VCL's
Window::Paint. The actual painting is done through Canvas.

D.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.