parkObj.parkUntil(deadline); // returns when done ...
Logging.parkStatus(controller, Logging.ParkStatusType.PARKRELEASED, threadparkingName);
// Wait for ns-2
ProtolibTimer timer = new ProtolibTimer(controller, 0, 0); // and then immediately stopping
timer.startTimerAndBlockUntilTimeout(); // and then starting again once timer has returned
// timer does the release needed for the unpark handshake.
AgentJVirtualMachine.setCurrentNode(controller.getNs2node());
// carry on now since we have woken up ns-2
}