sem_post() but with a count

Alexandre Bique bique.alexandre@gmail.com
Tue Feb 6 12:05:00 GMT 2018


Hi,

I'm working on a cross platform project, and on Windows, ReleaseSemaphore()
can take a count, however our sem_post() takes an implicit count of one.

By reading the source code I can see that we could save some CPU if we were
able to do sem_post_np(count).

What do you think? Am I missing something?

Regards,
-- 
Alexandre Bique



More information about the Libc-help mailing list