[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Re: Lock module improvement

From: Yoann Vandoorselaere
Subject: [PATCH] Re: Lock module improvement
Date: Thu, 07 Aug 2008 10:31:48 +0200

Le mardi 22 juillet 2008 à 01:44 +0200, Bruno Haible a écrit :
> > > > - Implement support for condition variable.
> > > 
> > > You are welcome to contribute a module for this.
> > 
> > I started working on condition variable support. To me, it make sense to
> > do that directly within the lock module (the code is very much similar
> > to what currently exist for mutex primitive). Any objection?
> Yes, I continue to think that it belongs into a different module, because
>   1) For 95% of all multithread programming, all one needs is
>        - locks,
>        - thread-local storage,
>        - starting and joining threads.
>      Wait queues and condition variables are less needed and harder to
>      use correctly (without introducing bugs or deadlocks).
>   2) The 'lock' module is compiled into libintl, and therefore I prefer to
>      avoid increasing its .o file size for things that libintl does not need.

Attached is an initial implementation of the glcond module, based on
your lock module. 


Yoann Vandoorselaere <address@hidden>

Attachment: glcond.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]