classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: locking implemented for AbstractDocument


From: Anthony Balkissoon
Subject: [cp-patches] FYI: locking implemented for AbstractDocument
Date: Thu, 06 Oct 2005 16:03:02 -0400

This patch implements locking for AbstractDocument.  Note that other
classes that extend this and override methods like insertString and
remove, or classes that in other ways alter the Document, should call
writeLock() before altering the Document and writeUnlock() after doing
so.  This isn't currently done and will need to be fixed shortly.

2005-10-06  Anthony Balkissoon  <address@hidden>

        * javax/swing/text/AbstractDocument.java: Implemeted locking.
        (insertString): Obtain write lock before altering document.
        (readLock): Implemented.
        (readUnlock): Implemented.
        (remove): Obtain write lock before altering document.
        (render): Implemented.
        (writeLock): Implemented.
        (writeUnlock): Implemented.
        (getCurrentWriter): Implemented.

--Tony

Attachment: AbstractDocumentCVLocking.diff
Description: Text Data


reply via email to

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