This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 32439
Collapse All | Expand All

(-)src/org/openide/util/Mutex.java (+8 lines)
Lines 1210-1215 Link Here
1210
        private Mutex parent;
1210
        private Mutex parent;
1211
	
1211
	
1212
        final void setParent(Mutex parent) {
1212
        final void setParent(Mutex parent) {
1213
            if (this.parent != null) {
1214
                throw new RuntimeException("This Mutex.Priviledged is already bound to a Mutex instance. It cannot be reused."); //NOI18N
1215
            }
1213
            this.parent = parent;
1216
            this.parent = parent;
1214
        }
1217
        }
1215
        
1218
        
Lines 1228-1232 Link Here
1228
        public void exitWriteAccess() {
1231
        public void exitWriteAccess() {
1229
            parent.leave(Thread.currentThread());
1232
            parent.leave(Thread.currentThread());
1230
        }
1233
        }
1234
        
1235
        public Mutex getMutex() {
1236
            return parent;
1237
        }
1238
        
1231
    }
1239
    }
1232
}
1240
}

Return to bug 32439