Threads

Do I remember correctly that SDL uses pthreads or something? Or does it
implement the threads itself? What about under Win32?

http://www.mongeese.org

Do I remember correctly that SDL uses pthreads or something? Or does it
implement the threads itself? What about under Win32?

SDL uses pthreads on systems that have it. For Linux libc5 systems, SDL uses
the native clone() interface, and for Windows, SDL uses native Windows threads.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hi,

I wish to ask what is the difference of thread routine on different
platforms. I got threads running correctly under Linux but seems to be buggy
in BeOS, QNX and even Win32.

I’m linking to SDL from FPC and my thread routine looks like this:

function mythread (param:pointer):pointer; cdecl;
begin
end;

This is ok in Linux but crashes in others…

Thanks, Pavel kanzelsberger