This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sem_post() but with a count


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]