GNU Radio 3.3.0 C++ API
mutex_trylock.h File Reference
#include "sync_utils.h"
#include "mutex.h"
#include "trace_libsync.h"
Include dependency graph for spu_source/mutex_trylock.h:

Go to the source code of this file.

Functions

static __inline int _mutex_trylock (mutex_ea_t ea)

Function Documentation

static __inline int _mutex_trylock ( mutex_ea_t  ea) [static]

mutex_trylock - acquire a lock, or return immediately. : handle to effective address of lock variable.

Description: Acquire a lock, or return immediately without polling for availability.

Context: The application should not call this interface from a tight loop!! Use spin_lock() instead.

References DECL_MUTEX_VARS, RAW_TEST_AND_SET, and TRACE_MUTEX_TRYLOCK.