From: Luke D. <cod...@ho...> - 2002-06-04 09:58:58
|
You could try pthreads-win32: http://sources.redhat.com/pthreads-win32/ But if it isn't enough... The Win32 API has its own threading and synchronisation functions, so you'll have to look at the API documentation at msdn.microsoft.com or one of the sources listed on the mingw.org site. First you will need to figure out how difficult it will be to port your code, and you should search for tutorials on Windows multithread programming and look at the source of programs that already work on Win32 and Linux (e.g. find the source to a cross-platform threading library). If you decide that it is too hard you should consider building your application with Cygwin (www.cygwin.com), which is a POSIX compatibility layer for Windows (including pthreads). I'll let others suggest solutions for iee754 and compile-time endianness checking. Mingw only works on x86 and I believe that Microsoft only supports x86 now, so you probably don't need to worry about that. Luke Dunstan ----- Original Message ----- From: "Egon Andersen, Talura" <po...@ta...> To: "mingw" <min...@li...> Sent: Tuesday, June 04, 2002 5:20 PM Subject: [Mingw-users] Misc problem with porting from Linux to Win > Hi, > > I'm porting some stuff made on Linux to run on Win too. > (I haven't got problems when porting to other Unix-platforms.) > > To make the code as portable as possible for different cpus, I've used > headers like: > endian.h, ieee754.h. > And pthread.h(!) for thread stuff. > > I did expect that I could find some substitutions for atleast endian.h > and ieee754.h. > I need to be able to get the raw mantissa and the raw exponent of > floating-point type. > And I need the byte-order to be able to manipulate integer-types > correct. > > pthread.h I didn't expect to find, but how do I make things like > mutex-locking in Win? > (Yes, I'm not used to Win at all.) > > > Do anyone have a hint for a solution for these portability problems? > > Best regards > Egon Andersen > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |