You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/07/29 19:07:42 UTC

[GitHub] [incubator-nuttx] gustavonihei commented on a change in pull request #4250: sched/wqueue: added debug option to tag and print worker name

gustavonihei commented on a change in pull request #4250:
URL: https://github.com/apache/incubator-nuttx/pull/4250#discussion_r679416146



##########
File path: include/nuttx/wqueue.h
##########
@@ -356,8 +359,17 @@ int work_usrstart(void);
  *
  ****************************************************************************/
 
-int work_queue(int qid, FAR struct work_s *work, worker_t worker,
-               FAR void *arg, clock_t delay);
+#if defined(CONFIG_LIB_USRWORK) && !defined(__KERNEL__)
+  int work_queue(int qid, FAR struct work_s *work, worker_t worker,
+                 FAR void *arg, clock_t delay);
+#else
+  int work_queue_nt(int qid, FAR struct work_s *work, worker_t worker,
+                    FAR void *arg, clock_t delay, FAR const char *name_tag);
+
+/* Stringificate the worker name for debug purposes */

Review comment:
       ```suggestion
   /* Stringify the worker name for debug purposes */
   ```
   nit: I think this is the right verb.




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