mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arve Knudsen <aknuds-1@broadpark.no>
To: sankar <san_madhav@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: pthread mutex question
Date: Sat, 01 Nov 2003 02:31:54 +0100	[thread overview]
Message-ID: <oprxxqjgqeq1sf88@mail.broadpark.no> (raw)
In-Reply-To: <Sea2-DAV35RuMrzpeSK0000db71@hotmail.com>

Its C++, but you could have a look at the boost::thread::timed_mutex 
(www.boost.org) implementation, which makes use of pthread_cond_timedwait.

Regards

Arve Knudsen

On Fri, 31 Oct 2003 16:43:14 -0800, sankar <san_madhav@hotmail.com> wrote:

> Hi,
> I am looking for an idea as to how to implement timed mutex using pthread
> libraries on linux.
> Basically I want to associate a timeout value with the wait function i,e
> pthread_mutex_lock() which returns once the timeout expires instaed of
> waiting for ever.
> Pls help
>
> thx..
>
> Sankarshana M

  reply	other threads:[~2003-11-01  1:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-01  0:43 sankar
2003-11-01  1:31 ` Arve Knudsen [this message]
2003-11-03 17:07   ` sankar
2003-11-03 19:05     ` Arve Knudsen

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=oprxxqjgqeq1sf88@mail.broadpark.no \
    --to=aknuds-1@broadpark.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=san_madhav@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®