Skip to content

Commit

Permalink
improve name for paper
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Jan 27, 2024
1 parent 33d2acd commit 71e3cee
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object Ownership {
def unchanged: Ownership = bottom.empty
}

case class Token(owner: Ownership, wants: ReplicatedSet[Uid])
case class Token(os: Ownership, wants: ReplicatedSet[Uid])
object Token {

val unchanged: Token = Token(Ownership.unchanged, ReplicatedSet.empty)
Expand Down Expand Up @@ -48,14 +48,14 @@ object Token {
// This is incredibly “unfair” but does prevent deadlocks in case someone needs multiple tokens.
current.wants.elements.maxOption match
case Some(head) if head != replicaId =>
Token(Ownership(current.owner.epoche + 1, head), ReplicatedSet.empty)
Token(Ownership(current.os.epoche + 1, head), ReplicatedSet.empty)
case _ => unchanged

def isOwner(using ReplicaId, PermQuery): Boolean = replicaId == current.owner.owner
def isOwner(using ReplicaId, PermQuery): Boolean = replicaId == current.os.owner
}
}

case class ExampleTokens(
calendarA: Token,
calendarB: Token
calendarAinteractionA: Token,
calendarBinteractionA: Token
)

0 comments on commit 71e3cee

Please sign in to comment.