Page 1 of 1

MultiThread Suport

Posted: Mon Aug 04, 2008 6:40 pm
by Rodrigo Pavan
Hi, how i do to compile FWPPC .prg with MultThread functions

StartThread
ThreadSleep
KillAllThreads
Mutex functions ....

Thks.

Posted: Tue Aug 05, 2008 4:14 am
by Antonio Linares
Rodrigo,

You can use Windows API multithreading functions from C level, not from PRG level.

Please review many examples provided in these forums that use #pragma BEGINDUMP ... #pragma ENDDUMP to see how to implement calls to the Windows API functions using the C language.

Posted: Tue Aug 05, 2008 4:18 am
by Antonio Linares
Rodrigo,

Here you have the documentation for threads:

Using the Windows API: ( CreateThread() )
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Without using the Windows API:
http://en.wikipedia.org/wiki/Beginthread

Posted: Tue Aug 05, 2008 11:42 am
by Rodrigo Pavan
Thks Antonio!!