Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
42
bool Semaphore::take_nonblocking()
43
{
44
return pthread_mutex_trylock(&_lock) == 0;
45
}
46
47
/*
48
binary semaphore using pthread condition variables
Callers
4
_write_fd
Method · 0.45
_read_fd
Method · 0.45
push
Method · 0.45
_write
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected