Changeset 75


Ignore:
Timestamp:
10/10/02 16:31:02 (20 years ago)
Author:
piso
Message:

Added write lock in constructor.

File:
1 edited

Legend:

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

    r2 r75  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: CheckinBuffer.java,v 1.1.1.1 2002-09-24 16:07:41 piso Exp $
     5 * $Id: CheckinBuffer.java,v 1.2 2002-10-10 16:31:02 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    3636        isUntitled = true;
    3737        mode = CheckinMode.getMode();
    38         appendLine("");
    39         renumber();
     38        try {
     39            lockWrite();
     40        }
     41        catch (InterruptedException e) {
     42            Log.debug(e);
     43            return;
     44        }
     45        try {
     46            appendLine("");
     47            renumber();
     48        }
     49        finally {
     50            unlockWrite();
     51        }
    4052        isLoaded = true;
    4153        setInitialized(true);
Note: See TracChangeset for help on using the changeset viewer.