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

Function sync_callback

src/rig.c:8441–8456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8439static pthread_mutex_t initializer = PTHREAD_MUTEX_INITIALIZER;
8440
8441HAMLIB_EXPORT(void) sync_callback(int lock)
8442{
8443 pthread_mutex_t client_lock = initializer;
8444
8445 if (lock)
8446 {
8447 pthread_mutex_lock(&client_lock);
8448 rig_debug(RIG_DEBUG_VERBOSE, "%s: client lock engaged\n", __func__);
8449 }
8450 else
8451 {
8452 rig_debug(RIG_DEBUG_VERBOSE, "%s: client lock disengaged\n", __func__);
8453 pthread_mutex_unlock(&client_lock);
8454 }
8455
8456}
8457#endif
8458
8459void rig_lock(RIG *rig, int lock)

Callers

nothing calls this directly

Calls 3

pthread_mutex_lockFunction · 0.85
rig_debugFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected