All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Riesen <a.riesen@traian.de>
To: LKML <linux-kernel@vger.kernel.org>
Subject: missing poll(2) for semaphores
Date: Thu, 19 Apr 2001 11:46:46 +0200	[thread overview]
Message-ID: <20010419114646.B798@traian.de> (raw)

Hi, all
i am missing a good (i think) feature of unix descriptors
in SysV semaphores - to be poll(2)-able.
Have someone an idea to somehow achieve the goal ? 


something like this:

int sem = create_our_pollable_semaphore();
...
...
pollfd fds[xxx];

for(i=0; i < countof(fds); fds[i++].events = POLLIN|POLLOUT);
fds[0].fd = sem;
fds[1].fd = server_sock1;
fds[2].fd = cmd_sock2;

while ( poll(fds, countof(fds), -1) >= 0 )
 ...

Thank you in advance

Alex Riesen



             reply	other threads:[~2001-04-19  9:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-19  9:46 Alex Riesen [this message]
2001-04-19 13:48 ` missing poll(2) for semaphores Alex Riesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010419114646.B798@traian.de \
    --to=a.riesen@traian.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.