MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / device_lock

Function device_lock

TactilityKernel/source/device.cpp:297–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void device_lock(struct Device* device) {
298 mutex_lock(&device->internal->mutex);
299}
300
301bool device_try_lock(struct Device* device, TickType_t timeout) {
302 return mutex_try_lock(&device->internal->mutex, timeout);

Callers 2

device_add_childFunction · 0.85
device_remove_childFunction · 0.85

Calls 1

mutex_lockFunction · 0.85

Tested by

no test coverage detected