You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "acassis (via GitHub)" <gi...@apache.org> on 2023/01/27 12:07:12 UTC

[GitHub] [nuttx] acassis commented on a diff in pull request #8284: spinlock: Move spinlock_init to public macros

acassis commented on code in PR #8284:
URL: https://github.com/apache/nuttx/pull/8284#discussion_r1088886390


##########
include/nuttx/spinlock.h:
##########
@@ -351,6 +332,25 @@ void spin_clrbit(FAR volatile cpu_set_t *set, unsigned int cpu,
 
 #endif /* CONFIG_SPINLOCK */
 
+/****************************************************************************
+ * Name: spin_initialize
+ *
+ * Description:
+ *   Initialize a non-reentrant spinlock object to its initial,
+ *   unlocked state.
+ *
+ * Input Parameters:
+ *   lock  - A reference to the spinlock object to be initialized.
+ *   state - Initial state of the spinlock {SP_LOCKED or SP_UNLOCKED)
+ *
+ * Returned Value:
+ *   None.
+ *
+ ****************************************************************************/
+
+/* void spin_initialize(FAR spinlock_t *lock, spinlock_t state); */

Review Comment:
   Please add new line after this comment line



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org