On Mon, 22 Sep 2008, Massimo Belgrano wrote:
> I compiled harbour wsith set HB_BUILD_ST=yes because I think that with
> this option  can choice if link hbvm.lib I have normal mode with hbvmmt.lib
> I have multi tread mode

Exactly but you have to make some mistake in setting environment vars.
I suggest to remove all instances of HB_BUILD_ST from your settings.
Please also remove all HB_MT_VM macros you may have in your settings.
Probably this one forced to compile hbvm.lib in MT mode.
Creating both libraries is default as long as you do not change it
by some personal settings f.e. HB_BUILD_ST=no or HB_MT_VM in C_USR

> Why build harbour with set HB_BUILD_ST=nothing?
> WIch mode will be standard for 1.1?

We will see. Now it's development state and we are using internal
switches which help us to work on Harbour and create new builds.
I cannot say what we will have in final 1.2 (1.1 is devel branch
and stable release will have number 1.2).

> Wich difference are need from a MT application to a non mt application?

If you do not want to create your own threads then there is no differnce
for you. Only MT HVM is slower then non MT one but the difference depends
on used C compiler, platform and your code. Usually user code calls many
RTL/RDD functions and pure HVM speed is less important.
If you want to create your own threads then you will have to follow
some general MT programming rules which are language independent.
Then use Harbour synchronization mechanisms if they are necessary for
your algorithms (f.e. you want to share or exchange some variables
between threads) to make your code MT safe.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to