[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-serveez] Thread safety
From: |
Raimund 'Raimi' Jacob |
Subject: |
Re: [help-serveez] Thread safety |
Date: |
Thu, 12 Dec 2002 09:37:23 +0100 (CET) |
On Thu, 12 Dec 2002, stefan wrote:
morning friends!
> I agree doing that:
> * introduce a --enable-threads 'configure' argument, which (for a first
> step) looks for a -lpthread library
i forgot a 'not' in my last email. what i mean was to definitly NOT call
that option --enable-threads but rather
--enable-some-threadsafe-functions. since serveez is not thread safe.
> * if enabled *and* found we can use the mutices in th pthread
> implementation
yes.
> * these pthread funtions go into wrapper like svz_mutex_*()
why ? see my last arguments.
> * the svz_mutex_() functions will be empty if there is no pthread found
> *or* disabled
too much work for too little benefit. what if the n+1st function needs to
become thread-safe and a mutex is not good enough. if you lazily implement
wrappers for all the pthreads you end up with a big wrapping API.
stefan: i think your only point is to not depend on a 3rd party lib for
windows. i am not sure if that is enough :-)
Bye,
Raimi
--
__/\ _/\ _____/\.___/\
/ / / /___/ ____/ __/\ Name : Raimi
/ / __/ __/ / __/ / _\/ Contact : address@hidden
/ /__/ / \/ /_/_/ /_/ Visit : http://www.lkcc.org
/________/___/\._\._____/_____/\ 3.141592653589793238462643383
\._______\.__\/__/\.____\.____\/ 27950288419716939937510582097
- Re: [help-serveez] Thread safety, (continued)
- Re: [help-serveez] Thread safety, stefan, 2002/12/10
- Re: [help-serveez] Thread safety, Andreas Rottmann, 2002/12/10
- Re: [help-serveez] Thread safety, stefan, 2002/12/10
- Re: [help-serveez] Thread safety, Andreas Rottmann, 2002/12/10
- Re: [help-serveez] Thread safety, stefan, 2002/12/11
- Re: [help-serveez] Thread safety, Raimund 'Raimi' Jacob, 2002/12/10
- Re: [help-serveez] Thread safety, Andreas Rottmann, 2002/12/11
- Re: [help-serveez] Thread safety, stefan, 2002/12/11
- Re: [help-serveez] Thread safety, Andreas Rottmann, 2002/12/11
- Re: [help-serveez] Thread safety, stefan, 2002/12/12
- Re: [help-serveez] Thread safety,
Raimund 'Raimi' Jacob <=
- Re: [help-serveez] Thread safety, stefan, 2002/12/12
- Re: [help-serveez] Thread safety, Andreas Rottmann, 2002/12/13