timeout a semaphore

timeout a semaphore

Post by Arie Tuchfel » Wed, 25 Aug 1999 04:00:00

How can I timeout a non signaled semaphore? i.e.:
        static struct sembuf op_decr[] = {
            0, -1, 0 // decrement sem#0 by 1
        semop(m_semid, &op_decr[0], 1); // blocks untill semval > 0.

Usually I use select() with timeout, but select() uses file descriptor,
is there a file descriptor for a semaphore ???


1. semaphore timeout


Is there a way to specify a time out in msecs, that a semop operation will
last? I.e. I want semop to try for x msecs to get a semaphore, and afterthat
if it wasn;t succesful to exit.


2. ll_rw_blk.c changes from 2.4.8 not in -ac

3. Timeout on semaphores (in kernel context)

4. Q: Order of filenames in open dialogs?

5. 2.5.49 - semaphore operations with timeouts

6. Telemann Skymedia 200D Modem Drivers?

7. timeout a semaphore

8. <None>

9. timeout on semaphore

10. : Semaphore with Timeout?

11. timeout requirement for semaphores

12. timeout semaphore

13. Need a Posix semaphore timeout system