59 static void acquire() { s_depth = s_depth + 1; }
65 if (s_depth) s_depth = s_depth - 1;
71 static bool owned() {
return s_depth != 0; }
87 static inline volatile uint32_t s_depth = 0;
Ownership arbiter for the SIO0 serial bus.
Definition sio0-bus.hh:54
static bool owned()
Returns whether the bus is currently owned by a card transaction.
Definition sio0-bus.hh:71
static void release()
Releases one level of ownership taken by acquire.
Definition sio0-bus.hh:64
static void acquire()
Takes ownership of the bus for the calling transaction.
Definition sio0-bus.hh:59
RAII helper that owns the bus for the lifetime of the object.
Definition sio0-bus.hh:79
Lock(const Lock &)=delete
Lock & operator=(const Lock &)=delete
Lock()
Definition sio0-bus.hh:80
~Lock()
Definition sio0-bus.hh:81
void uint32_t(classId, spec)