Commit d2a70c24 by Christian Kern

Document returning error, even if currently this never happens (future use +…

Document returning error, even if currently this never happens (future use + stay compatible with mutex implementation).
parent 46cfbb24
...@@ -180,7 +180,8 @@ int embb_spin_init( ...@@ -180,7 +180,8 @@ int embb_spin_init(
* *
* \pre \c spinlock is initialized \n * \pre \c spinlock is initialized \n
* \post If successful, \c spinlock is locked. * \post If successful, \c spinlock is locked.
* \return EMBB_SUCCESS if spinlock could be locked. * \return EMBB_SUCCESS if spinlock could be locked. \n
* EMBB_ERROR if an error occurred.
* \threadsafe * \threadsafe
* \see embb_spinlock_try_lock(), embb_mutex_unlock() * \see embb_spinlock_try_lock(), embb_mutex_unlock()
*/ */
...@@ -197,6 +198,7 @@ int embb_spin_lock( ...@@ -197,6 +198,7 @@ int embb_spin_lock(
* *
* \return EMBB_SUCCESS if spinlock could be locked \n * \return EMBB_SUCCESS if spinlock could be locked \n
* EMBB_BUSY if spinlock could not be locked \n * EMBB_BUSY if spinlock could not be locked \n
* EMBB_ERROR if an error occurred
* \threadsafe * \threadsafe
* \see embb_spin_lock(), embb_spin_unlock() * \see embb_spin_lock(), embb_spin_unlock()
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment