mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "sankar" <san_madhav@hotmail.com>
To: <linux-kernel@vger.kernel.org>, "Arve Knudsen" <aknuds-1@broadpark.no>
Subject: Re: pthread mutex question
Date: Mon, 3 Nov 2003 09:07:47 -0800	[thread overview]
Message-ID: <Sea2-DAV50kJcj3CRIn0000c736@hotmail.com> (raw)
In-Reply-To: <oprxxqjgqeq1sf88@mail.broadpark.no>

Thx for the info...I lookd in boost.org..It does not have the source code
for timed mutex.It just says how it shd work..Pls let me know if I am
missing something  here..
----- Original Message -----
From: "Arve Knudsen" <aknuds-1@broadpark.no>
To: "sankar" <san_madhav@hotmail.com>; <linux-kernel@vger.kernel.org>
Sent: Friday, October 31, 2003 5:31 PM
Subject: Re: pthread mutex question


> 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-03 17:12 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
2003-11-03 17:07   ` sankar [this message]
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=Sea2-DAV50kJcj3CRIn0000c736@hotmail.com \
    --to=san_madhav@hotmail.com \
    --cc=aknuds-1@broadpark.no \
    --cc=linux-kernel@vger.kernel.org \
    /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®