From: Gillius <gi...@we...> - 2001-04-15 05:17:23
|
On 15 Apr 2001, at 0:14, George Foot wrote: > Would Windows pthreads be usable for this, considering that the > actual threading inside Windows Allegro is not done using > pthreads? Hmm that I do not know. I don't have enough experience to say, put I believe it would work. The OS only has one set of "true" threading functions, so the differences lie only with the APIs. Allegro uses Win32 threading calls and the pthreads functions obvsiously have to call those too. That's doesn't nessacarily mean it will work though but I think chances are good. Another reason it might work though is because of this: Mutex mutex; timer function { mutex.aquire mutex.release } main code { ... //code with mutex stuff in it } The mutex is really part of the program, but part of Allegro. So even if you couldn't play around with the threads Allegro makes, because of the fact that you are working on YOUR mutex it may work. Of course this fails in single threaded mode... So some API will have to be added for non- atomic timers to only use mutex in single-threading mode. Personally I have no problem with the requirement that timers be atomic. Others might -- either way it'll get ugly because you'll have to require timer functions to be atomic or add in the proper API for timer locking. Gillius >From <all...@ca...> Sat Apr 14 22:47:24 2001 Received: from hotmail.com [216.33.148.76] by canvaslink.com with ESMTP (SMTPD32-6.00) id A0BCAB70258; Sat, 14 Apr 2001 22:00:28 -0400 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 14 Apr 2001 18:58:32 -0700 X-Originating-IP: [200.42.6.189] From: "Norberto Alfredo Bensa" <ce...@nb...> To: <al...@ca...> References: <001b01c0c3e5$fa1cea60$0200a8c0@darren> <200...@su...tchett> <002d01c0c470$85b3aca0$0200a8c0@darren> <OE4...@ho...> <000601c0c477$e47fb1a0$0200a8c0@darren> <OE1...@ho...> <000401c0c4e0$36ce9300$0200a8c0@darren> <OE1...@ho...> <002b01c0c540$1092aa40$0200a8c0@darren> Date: Sat, 14 Apr 2001 22:57:47 -0300 Organization: nBens@ Computers X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <OE3...@ho...> X-OriginalArrivalTime: 15 Apr 2001 01:58:32.0714 (UTC) FILETIME=[9315C6A0:01C0C54F] Subject: Re: [AL] Good news for Allegro CVS and MingW32 !! Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 289607986 Status: O Content-Length: 255 Lines: 16 Thanks! Regards, Norberto > > Could you please tell which site so others can enjoy sed 3.0.2 too? > > Sed 3.02 for MingW32 can be downloaded from > ftp://agnes.dida.physik.uni-essen.de/home/janjaap/mingw32/newnew/sed-3.02.zi > p > > Darren Connolly > |