gnrc_ipv6_nib: wrap mutex lock/unlock in function
This commit is contained in:
parent
053dbd1c4a
commit
1ce19e26b4
@ -266,6 +266,22 @@ extern _nib_dr_entry_t *_prime_def_router;
|
||||
*/
|
||||
void _nib_init(void);
|
||||
|
||||
/**
|
||||
* @brief Acquire exclusive access to the NIB
|
||||
*/
|
||||
static inline void _nib_acquire(void)
|
||||
{
|
||||
mutex_lock(&_nib_mutex);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Release exclusive access to the NIB
|
||||
*/
|
||||
static inline void _nib_release(void)
|
||||
{
|
||||
mutex_unlock(&_nib_mutex);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Gets interface identifier from a NIB entry
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user