lkml.org 
[lkml]   [2003]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: pthread mutex question
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.033 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site