This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
sem_post() but with a count
- From: Alexandre Bique <bique dot alexandre at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 6 Feb 2018 13:05:03 +0100
- Subject: sem_post() but with a count
- Authentication-results: sourceware.org; auth=none
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