DeviceClaims class
One claim file per device under ~/.glint/claims, so parallel agents never share a device by accident.
Constructors
- DeviceClaims({String? dir, int? ownPid, bool isAlive(int pid)?})
Properties
Methods
-
claim(
String deviceId, {String? app}) → void -
Marks
deviceIdas driven by this process, unless another live session holds it (that claim stays theirs); best effort, since a claim only guards against accidents. -
heldByOther(
String deviceId) → DeviceClaim? -
The live claim another process holds on
deviceId, or null when it is free or ours. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
String deviceId) → void -
Frees
deviceIdfor other agents when this process holds the claim; a claim another process holds is left alone. -
toString(
) → String -
A string representation of this object.
inherited
-
touch(
String deviceId) → void -
Records that this process just acted on
deviceId, at most every 30 s, so others can tell a busy claim from an idle one.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited