public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* sem_post() but with a count
@ 2018-02-06 12:05 Alexandre Bique
  0 siblings, 0 replies; only message in thread
From: Alexandre Bique @ 2018-02-06 12:05 UTC (permalink / raw)
  To: libc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-06 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 12:05 sem_post() but with a count Alexandre Bique

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).