[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Solving the Pthreads issue

From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] Solving the Pthreads issue
Date: Tue, 4 May 2010 05:41:19 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

David Bruce <address@hidden> schrieb:
> Success - the crossbuild of tuxtype now has working sound.

Thanks for testing!

> One question - tuxtype itself doesn't use pthreads, but tuxmath
> optionally uses pthreads in one place.  Is there a safe cross-platform
> way to do this, or do I have to use some sort of conditional
> compilation #ifdefs to use pthreads on Linux and windows threads in
> the mingw-cross-env crossbuild?

You should first try with Pthreads. Maybe you're lucky and it
just works for you.

Using #ifdefs for Pthreads / Win32 API is the usual alternative.

A third way would be to use GNU Pth. The project sounds very
promising, although (or even because) it doesn't provide "real"


Note that Pth is currently not part of mingw-cross-env, but I'd
add it if there's a need for it.



Volker Grabsch
NotJustHosting GbR

reply via email to

[Prev in Thread] Current Thread [Next in Thread]