Changeset 94


Ignore:
Timestamp:
10/11/02 12:35:09 (21 years ago)
Author:
piso
Message:

setModificationCount(), incrementModificationCount(), needsAutosave(), getText(): now synchronized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Buffer.java

    r93 r94  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Buffer.java,v 1.5 2002-10-11 01:42:36 piso Exp $
     5 * $Id: Buffer.java,v 1.6 2002-10-11 12:35:09 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    597597    }
    598598
    599     public final void setModificationCount(int count)
     599    public final synchronized void setModificationCount(int count)
    600600    {
    601601        if (count != modificationCount) {
     
    605605    }
    606606
    607     public final void incrementModificationCount()
     607    public final synchronized void incrementModificationCount()
    608608    {
    609609        ++modificationCount;
     
    17451745    }
    17461746
    1747     public boolean needsAutosave()
     1747    public synchronized boolean needsAutosave()
    17481748    {
    17491749        if (!Autosave.isAutosaveEnabled() || !autosaveEnabled)
     
    25242524
    25252525    // Never returns null.
    2526     public String getText()
     2526    public synchronized String getText()
    25272527    {
    25282528        if (srText != null) {
Note: See TracChangeset for help on using the changeset viewer.