RP.Multicore.Spinlocks

Entities

Simple Types

Subprograms

Description

Lock_Id

type Lock_Id is range 0 .. 31;

Locked

function Locked (Id : Lock_Id) return Boolean

Return True if the given lock is claimed (Mainly intended for debugging)

Parameters
Id
Return Value

Release

procedure Release (Id : Lock_Id)

Release the given lock

Parameters
Id

Try_Lock

function Try_Lock (Id : Lock_Id) return Boolean

Try to claim the given lock. Return True if the lock is successfully claimed.

Parameters
Id
Return Value

Wait_Lock

procedure Wait_Lock (Id : Lock_Id)

Repeatedly try to claim the lock until successful

Parameters
Id