MultiThread Suport

Post Reply
User avatar
Rodrigo Pavan
Posts: 22
Joined: Tue Dec 26, 2006 12:53 pm

MultiThread Suport

Post by Rodrigo Pavan »

Hi, how i do to compile FWPPC .prg with MultThread functions

StartThread
ThreadSleep
KillAllThreads
Mutex functions ....

Thks.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rodrigo Pavan
Posts: 22
Joined: Tue Dec 26, 2006 12:53 pm

Post by Rodrigo Pavan »

Thks Antonio!!
Post Reply