|
GNU Radio 3.3.0 C++ API
|
#include <ppu_intrinsics.h>#include "sync_utils.h"#include "mutex.h"#include "trace_libsync.h"
Go to the source code of this file.
Functions | |
| static __inline int | _mutex_trylock (mutex_ea_t lock) |
| static __inline int _mutex_trylock | ( | mutex_ea_t | lock | ) | [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.
Attempt to immediately aquire a lock at a location in system memory, and return 1 if the lock was aquired or 0 otherwise.
References SYNC_ULL_TO_PTR, and TRACE_MUTEX_TRYLOCK.