xiaoxiang781216 commented on code in PR #16944: URL: https://github.com/apache/nuttx/pull/16944#discussion_r2316650207
########## sched/semaphore/sem_setmaxvalue.c: ########## @@ -0,0 +1,65 @@ +/**************************************************************************** + * sched/semaphore/sem_setmaxvalue.c Review Comment: let's move to libs/libc/semaphore/ ########## sched/semaphore/semaphore.h: ########## @@ -71,6 +71,12 @@ void nxsem_timeout(wdparm_t arg); void nxsem_recover(FAR struct tcb_s *tcb); +#ifdef CONFIG_CUSTOM_SEMAPHORE_MAXVALUE +/* Set sem max allowed value */ + +int nxsem_setmaxvalue(FAR sem_t *sem, int32_t maxvalue); Review Comment: do you need move to include/nuttx/semaphore.h -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org