Hi Przemek,

Il 07/12/2008 18.07, Przemyslaw Czerpak ha scritto:

In UDP packets can be lost by definition and it's programmer job
to detect it and repeat messages if necessary.
Here MT mode can help only indirectly by reducing some time conditions
but it does not eliminate the problem.

Yes, I know. What I want to say is that in MT mode I loose less packet than in ST, surely for reduced time execution respect to ST mode. That it is better.


> The default ST code should have additional protection for setting/restoring
tasks or the task list should be local to thread.
Using MT you can also create alternative version of background tasks
without modifing main HVM loop or other HVM structures.
You can simply create separate thread which will execute your tasks.
F.e. sth like:
[snip]

I haven't tested above code. I've just written it as an example.

Very interesting, I will give it a look to implement BT in MT mode.
Thank you.

Best Regards

Francesco
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to