[fpc-devel] Multithreading under DOS

Sven Barth pascaldragon at googlemail.com
Thu Sep 26 20:32:05 CEST 2013


On 26.09.2013 14:14, Hans-Peter Diettrich wrote:
> Sven Barth schrieb:
>
>> Well, we do have a TThread.Yield procedure since the last time I
>> worked on TThread :)
>
> What does it do on a DOS target?

Currently it will print this:

=== output begin ===

This binary has no thread support compiled in.
Recompile the application with a thread-driver in the program uses 
clause before other units using thread.

=== output end ===

This is the standard implementation of threading functions if no other 
thread manager is provided (TThread.Yield calls System.ThreadSwitch 
which calls TThreadManager.ThreadSwitch). Otherwise it will depend on 
the threading manager implemented... (see Nikolay's other mail)

Regards,
Sven




More information about the fpc-devel mailing list