MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / take_nonblocking

Method take_nonblocking

libraries/AP_HAL_Linux/Semaphores.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool Semaphore::take_nonblocking()
43{
44 return pthread_mutex_trylock(&_lock) == 0;
45}
46
47/*
48 binary semaphore using pthread condition variables

Callers 4

_write_fdMethod · 0.45
_read_fdMethod · 0.45
pushMethod · 0.45
_writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected