[Harbour] Are there MT issues in contrib/hbpgsql?

Lorenzo Fiorini lorenzo.fiorini at gmail.com
Wed Feb 3 15:44:29 EST 2010


2010/2/3 Przemysław Czerpak <druzus at acn.waw.pl>:

> No. By default all memvars (PUBLIC and PRIVATE) variables are separated
> between threads and each threads starts with its own clean set of memvars.
> If you want to change it then you can use thread attributes in
> hb_threadStart() function. See hbthread.ch and code example in
> tests/mt/mttest08.prg if you are interested in it.
> See "MULTI THREAD SUPPORT" in doc/xhb-diff.txt. I documented shared
> and inherited thread resources in Harbour.

Thanks, I wanted only to be sure.

I've simplified all I could but it still segfault here and there when
there are at least 2 concurrent calls.

I'll try to create a self contained test.

best regards,
Lorenzo


More information about the Harbour mailing list