gnrc_ipv6_nib: wrap mutex lock/unlock in function

This commit is contained in:
Martine S. Lenders 2019-10-11 12:13:32 +02:00
parent 053dbd1c4a
commit 1ce19e26b4

View File

@ -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
*