From: Arve Knudsen <aknuds-1@broadpark.no>
To: sankar <san_madhav@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: pthread mutex question
Date: Mon, 03 Nov 2003 20:05:56 +0100 [thread overview]
Message-ID: <oprx2sn6x1q1sf88@mail.broadpark.no> (raw)
In-Reply-To: <Sea2-DAV50kJcj3CRIn0000c736@hotmail.com>
You're probably looking at the abstract model. Download the source and
look at timed_mutex::do_timedlock, in mutex.cpp.
Regards
Arve Knudsen
On Mon, 3 Nov 2003 09:07:47 -0800, sankar <san_madhav@hotmail.com> wrote:
> 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
>>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2003-11-03 19:06 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
2003-11-03 19:05 ` Arve Knudsen [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=oprx2sn6x1q1sf88@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®