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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to