[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.
Regards,
--
Yoann Vandoorselaere <address@hidden>
glcond.diff
Description: Text Data
- [PATCH] Re: Lock module improvement,
Yoann Vandoorselaere <=
- Re: [PATCH] conditions variables module, Bruno Haible, 2008/08/07
- Re: [PATCH] conditions variables module, Yoann Vandoorselaere, 2008/08/07
- Re: [PATCH] conditions variables module, Bruno Haible, 2008/08/07
- Re: [PATCH] conditions variables module, Yoann Vandoorselaere, 2008/08/08
- Re: [PATCH] conditions variables module, James Youngman, 2008/08/08
- Re: [PATCH] conditions variables module, Yoann Vandoorselaere, 2008/08/08
- Re: [PATCH] conditions variables module, James Youngman, 2008/08/11