From: arjan@fenrus.demon.nl (Arjan van de Ven)
To: twaugh@redhat.com (Tim Waugh)
Cc: linux-kernel@vger.kernel.org
Subject: Re: timing out on a semaphore
Date: Mon, 26 Feb 2001 10:19:51 +0100 (CET) [thread overview]
Message-ID: <m14XJot-000ObCC@amadeus.home.nl> (raw)
In-Reply-To: <20010225224039.W13721@redhat.com>
In article <20010225224039.W13721@redhat.com> you wrote:
> --2F7AbV2suvT8PGoH
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> 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.
What we _really_ need is down_timeout(), which I plan to implement for early
2.5. The semantics should by similar to the try_lock functions, exect that
it will try for a specified amount of time first.
Greetings,
Arjan van de Ven
prev parent reply other threads:[~2001-02-26 14:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=m14XJot-000ObCC@amadeus.home.nl \
--to=arjan@fenrus.demon.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=twaugh@redhat.com \
/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.