Hi Przemek,
Il 05/12/2008 11.37, Przemyslaw Czerpak ha scritto:
No, I'm not familiar with hblog* code. Anyhow if it operates on
separated resources then is should be safe. But to say sth more
I will have to look at this code.
It will be good. Actually it seems to me correct, apart from OS
functions that I don't know as you write below.
Is it INET is already MT safe and functional also if its source is in rtl
folder ?
There is one problem which have to be fixed in *inet functions.
The name resolving is not MT safe. Just simply OS inet functions
gethostbyaddr() and gethostbyname() are not MT safe. For some
platforms there are alternative functions which can be used as
workaround unfortunately they are not standard ones. In general
functions which calls hb_getHosts() internally are not MT safe.
These are: HB_INETGETHOSTS(), HB_INETGETALIAS(), HB_INETCONNECT().
In xHarbour documentation Giancarlo described it (see doc/inet.txt)
I will work on INET module adding C API and I'll resolve it for
some platforms and for other I'll try to add some workarounds
or describe limitations.
Now I'm busy working on some other things so I cannot say when
exactly I will find time to make it.
Thank you in advance.
Could it be correct to define hb_ThreadStart( {|| ::AcceptCon() } ) ?
Yes it's correct.
In Harbour object with character message name in next parameter as
thread start point is not supported intentionally. If you need then
create simple wrapper function though I suggest to not use it.
In meanwhile I have tried and my code seems to work correctly: speed is
impressive and in MT mode I'm not loosing UDP packets as I did in ST
version. Now I'm trying to make a better version more MT oriented.
And, I didn't believe it, also background tasks works in MT version
without problems (as I have used them in ST version for console add-ons)
or at last it seems to be working.
Thank you very much for you incredible work with MT (and all other part
of Harbour with other core developers). I like too much that all mt code
is in only one vmmt.lib file.
Best Regards
Francesco
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour