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

[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8832: sched/wqueue: Do as much work as possible in work_thread

pkarashchenko commented on code in PR #8832:
URL: https://github.com/apache/nuttx/pull/8832#discussion_r1141742664


##########
sched/wqueue/kwork_queue.c:
##########
@@ -38,6 +38,23 @@
 
 #ifdef CONFIG_SCHED_WORKQUEUE
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#define queue_work(wqueue, work) \
+  do \
+    { \
+      int sem_count; \
+      dq_addlast((FAR dq_entry_t *)(work), &(wqueue).q); \
+      sem_getvalue(&(wqueue).sem, &sem_count); \

Review Comment:
   ```suggestion
         nxsem_get_value(&(wqueue).sem, &sem_count); \
   ```



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