public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* missing poll(2) for semaphores
@ 2001-04-19  9:46 Alex Riesen
  2001-04-19 13:48 ` Alex Riesen
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Riesen @ 2001-04-19  9:46 UTC (permalink / raw)
  To: LKML

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-19 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19  9:46 missing poll(2) for semaphores Alex Riesen
2001-04-19 13:48 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox