jlaitine commented on PR #16360: URL: https://github.com/apache/nuttx/pull/16360#issuecomment-2873396756
> Question: It tries to get sem only one time? Is possible to make it like 3 tries (for fast path) or configurable? I'd assume that it is so rare occasion that two cores try to increment decrement at the same time, that it is not worth adding the while loop in sem_wait / sem_post, it just complicates it. For sem_trywait I did that just because it felt simpler in that case. I'd say that either try it as many times as needed in while or just try once, making it configurable wouldn't really make sense... -- 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