if(!LockTable.lock(obj, locksMarker, deadline_ts, tid)){
Logger.fetal("Remote Obj for commit " + obj);
GlobalObject globalObject = ObjectsRegistery.getKey(((AbstractDistinguishable)obj).getId());
if(globalObject==null) { // object was deleted
throw new TransactionException();
}
Logger.debug("Lock request - Realtime Deadline = " + deadline_ts.getSeconds() + " " + deadline_ts.getNanoseconds());
try {
LockTable.remoteLockRequest(this, globalObject, deadline_ts, period_ts, tid);
} catch (InterruptedException exception) {
wasInterrupted = true;
}
if(!pendingLock){
Logger.debug("Remote lock refused");
throw new TransactionException();
}
}
++lockedCounter;
// Check for expired deadline
if(edu.vt.rt.hyflow.benchmark.Benchmark.getAbortHandler().wasAborted(ChronosUtil.gettid()))
throw new TransactionException();
if(wasInterrupted == true)
throw new InterruptedException();
}
Logger.debug("Validate Read-Set");