diff --git a/base_c/include/embb/base/c/mutex.h b/base_c/include/embb/base/c/mutex.h index fdaabb5..a813c84 100644 --- a/base_c/include/embb/base/c/mutex.h +++ b/base_c/include/embb/base/c/mutex.h @@ -98,6 +98,9 @@ int embb_mutex_init( /** * Waits until the mutex can be locked and locks it. * + * \note This method yields the current thread in regular, + * implementation-defined intervals. + * * \pre \c mutex is initialized \n * If the mutex type is plain, \c mutex must not be locked by the current * thread. diff --git a/base_cpp/include/embb/base/mutex.h b/base_cpp/include/embb/base/mutex.h index c700003..ac9b6fc 100644 --- a/base_cpp/include/embb/base/mutex.h +++ b/base_cpp/include/embb/base/mutex.h @@ -192,6 +192,9 @@ class Spinlock { /** * Waits until the spinlock can be locked and locks it. * + * \note This method yields the current thread in regular, + * implementation-defined intervals. + * * \pre The spinlock is not locked by the current thread. * \post The spinlock is locked. * \threadsafe