Class NativeOpenOperation
java.lang.Object
thc.runtime.NativeOpenOperation
- All Implemented Interfaces:
com.oracle.truffle.api.TruffleSafepoint.Interrupter, AutoCloseable
public final class NativeOpenOperation
extends Object
implements AutoCloseable, com.oracle.truffle.api.TruffleSafepoint.Interrupter
One original safe/interruptible open. Only its native worker acquires the
file. Safepoint retries wait for the SAME request; they never replay open.
The request owns its pathname and fd until transfer to the existing lease.
No guest exception is claimed here: GHC's wrapper delivers after failure.
-
Field Summary
Fields inherited from interface com.oracle.truffle.api.TruffleSafepoint.Interrupter
THREAD_INTERRUPT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawait(com.oracle.truffle.api.nodes.Node node, GuestThreads threads, boolean interruptible, NativeFileLease lease) voidclose()voidvoid
-
Constructor Details
-
NativeOpenOperation
-
-
Method Details
-
interrupt
-
resetInterrupted
- Specified by:
resetInterruptedin interfacecom.oracle.truffle.api.TruffleSafepoint.Interrupter
-
await
public void await(com.oracle.truffle.api.nodes.Node node, GuestThreads threads, boolean interruptible, NativeFileLease lease) throws NativeFileException - Throws:
NativeFileException
-
close
- Specified by:
closein interfaceAutoCloseable
-