All of lore.kernel.org
 help / color / mirror / Atom feed
* timing out on a semaphore
@ 2001-02-25 22:40 Tim Waugh
  2001-02-25 22:53 ` Davide Libenzi
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tim Waugh @ 2001-02-25 22:40 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

I'm trying to chase down a semaphore time-out problem.  I want to
sleep on a semaphore until either

(a) it's signalled, or
(b) some amount of time has elapsed.

What I'm doing is calling add_timer, and then down_interruptible, and
finally del_timer.  The timer's function ups the semaphore.

The code is in parport_wait_event, in drivers/parport/ieee1284.c.

Can anyone see anything obviously wrong with it?  It seems to
sometimes get stuck.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2001-02-27 23:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-25 22:40 timing out on a semaphore Tim Waugh
2001-02-25 22:53 ` Davide Libenzi
2001-02-25 23:10 ` Andrew Morton
2001-02-27 14:39   ` Tim Waugh
2001-02-27 22:40     ` Andrew Morton
2001-02-27 23:28       ` Tim Waugh
2001-02-27 23:35         ` Davide Libenzi
2001-02-26  9:19 ` Arjan van de Ven

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.