MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / MUTEX_CHECK

Function MUTEX_CHECK

src/rig.c:207–217  ·  view source on GitHub ↗

returns true if mutex is busy

Source from the content-addressed store, hash-verified

205
206// returns true if mutex is busy
207int MUTEX_CHECK(pthread_mutex_t *m)
208{
209 int trylock = pthread_mutex_trylock(m);
210
211 if (trylock != EBUSY)
212 {
213 pthread_mutex_unlock(m);
214 }
215
216 return trylock == EBUSY;
217}
218
219
220/*

Callers 4

rig_get_freqFunction · 0.85
rig_get_modeFunction · 0.85
rig_get_vfoFunction · 0.85
rig_get_split_vfoFunction · 0.85

Calls 2

pthread_mutex_trylockFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected