www.digitalmars.com         C & C++   DMDScript  

D.gnu - Condvar implementation

reply Tommie Gannert <Tommie_member pathlink.com> writes:
Hi!

Good news! I have an initial version of the condition variables. However, having
it on my computer won't help the rest of you. So, how do you want it for GDC
inclusion?

I'll have to do a test compilation on Windows too, but emulating Win32 with
pthreads on Linux seems to give both a working and pretty fair solution...

If someone with insight in thread synchronization could take a look at the
Windows implementation, I would be grateful. I could post pseudo-code for it.

Also suggest including the pthreads and semaphore D-files in Phobos.
Dec 04 2005
parent reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
Tommie Gannert wrote:
 Hi!
 
 Good news! I have an initial version of the condition variables. However,
having
 it on my computer won't help the rest of you. So, how do you want it for GDC
 inclusion?
 
 I'll have to do a test compilation on Windows too, but emulating Win32 with
 pthreads on Linux seems to give both a working and pretty fair solution...
 
 If someone with insight in thread synchronization could take a look at the
 Windows implementation, I would be grateful. I could post pseudo-code for it.
 
 Also suggest including the pthreads and semaphore D-files in Phobos.
 
 
Is this something that can be used with DMD as well?
Dec 05 2005
parent reply Tommie Gannert <Tommie_member pathlink.com> writes:
In article <dn2n6c$2kui$1 digitaldaemon.com>, David Friedman says...
Is this something that can be used with DMD as well?
Yes.
Dec 05 2005
parent David Friedman <d3rdclsmail_a t_earthlink_d.t_net> writes:
Tommie Gannert wrote:
 In article <dn2n6c$2kui$1 digitaldaemon.com>, David Friedman says...
 
Is this something that can be used with DMD as well?
Yes.
I can test it out and make any necessary changes for Win32 and MacOS X. If you would like to see it included in DMD, you should probably send it to Walter too. David
Dec 06 2005