[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Win32 Conditional support
From: |
Federico Montesino Pouzols |
Subject: |
Re: Win32 Conditional support |
Date: |
Thu, 29 Aug 2002 21:06:07 +0200 (CEST) |
Hi,
> Has anyone started work on providing support for Conditional objects on
> the Win32 platform?
>
> Would it make sense for common c++ to simply leverage the existing
> pthreads implementation for win32 at
> http://sources.redhat.com/pthreads-win32/. It looks to be a pretty
> complete implementation that has support for condition variables, among
> other things.
>
Well, using pthreads-win32 as the base to implement CC++'s conditionals
would imply changing the whole threading/synchronization Win32
implementation of CC++. Currently, the Win32 port of CC++ is based on
"native" Win32 calls, so we are talking of a very deep change.
Sometime ago I used pthreads-win32 and it certainly works quite well
and stable. There would be however three issues if CC++ based its Win32
port on pthreads-win32:
* We would impose an additional dependency for a core component of CC++.
* We would have three layers (CC++/pthreads-win32/Win32 native). I do
not know pthreads-win32 internals so as to say if performance would
degrade significantly.
* I am not sure if pthreads-win32 would be able to support all CC++
threading features. There have been some problems with cygwin emulation
layer.
With this I do not want to say using pthreads-win32 is a bad idea,
but I think it would be simpler to implement Conditional with just
Win32 system calls.
> Personally, I would be happy with a win32 common c++ that simply linked
> against the win32 pthreads library as this would give me equivalent
> behavior between win32 and unix. I'm not a big fan of the native Win32
> threading API.
>
> --Scott
>
>
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp