Electronic Music mailing list archives

Previous Message: presentation of a pinball machine project
Next Message: Re: subscribing to csound dev

From: ramsdell ()
Date: Dec 1, 2004
Subject: Re: Updates to csound4
 [EMAIL REMOVED]  writes:

> One could use, or not use, pthreads with either MinGW or Cygwin. In
> my projects (e.g. Csound 5) I don't use Cygwin, I use MinGW, and
> with MinGW, I do not use pthreads.

I found out why you don't use pthreads on MinGW--the library is not
present in the current distribution!

I changed csound/widget.cpp as follows, built Csound GBS on MinGW, and
verified that Art's FL opcode example works.

--- csound/widgets.cpp	1 Dec 2004 13:52:14 -0000	1.14
+++ csound/widgets.cpp	1 Dec 2004 22:44:53 -0000 [EMAIL REMOVED] +1751,7 @@
 
 extern "C" void FL_run(FLRUN *p)
 {
-#ifdef _WINDOWS
+#if defined(_WINDOWS) || defined(WIN32)
     threadHandle = _beginthread(fltkRun, 0, NULL);
     if (isActivatedKeyb)
       threadHandle = _beginthread(fltkKeybRun, 0, NULL);

Please tell if the reference to WIN32 is correct.  Michael and others,
it's so nice having people who have been there giving advice, thus
making resolving this bug quick.  Thanks.

John
--  [EMAIL REMOVED]               (or to http://www.cs.bath.ac.uk/cgi-bin/csound ) [EMAIL REMOVED] 

+Re: Updates to csound4 gogins@pipeline.com (12/01/04)
+---Re: Updates to csound4 ramsdell (12/01/04)
+--- pthreads (was Re: Updates to csound4) Victor Lazzarini (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) ramsdell (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) Victor Lazzarini (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) ramsdell (12/02/04)
+------Re: pthreads (was Re: Updates to csound4) Iain Duncan (12/01/04)
+---------Re: pthreads (was Re: Updates to csound4) Art Hunkins (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) ramsdell (12/02/04)
+------Re: pthreads (was Re: Updates to csound4) Art Hunkins (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) ramsdell (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) Matt J. Ingalls (12/02/04)
+--- Concerns about FLrun, flCsound, and threads ramsdell (12/02/04)
+---Re: pthreads (was Re: Updates to csound4) Victor Lazzarini (12/03/04)
+---Re: 4.23fl2gbs.7 - it works! Victor Lazzarini (12/03/04)
+---Re: 4.23fl2gbs.7 - it works! Victor Lazzarini (12/03/04)
+--- csound 5 linux question Victor Lazzarini (12/03/04)
+---Re: csound 5 linux question jpff (12/03/04)

Previous Message: presentation of a pinball machine project
Next Message: Re: subscribing to csound dev