Ownership

public enum Ownership : Hashable, Sendable

Represent ownership status for precondition checking.

  • Lock is currently owned by the calling thread.

    Declaration

    Swift

    case owner
  • Lock is unlocked or owned by a different thread.

    Declaration

    Swift

    case notOwner