On Tue, Jan 20, 2009 at 9:44 AM, Lorenzo Fiorini
<lorenzo.fior...@gmail.com> wrote:

> Now the menus are ok but I have problems with the dbfs.
> ...
> I've searched in the mailing list and in the ChangeLog and what I
> found seems to state that workareas are local to threads.

I've tried a small test and it works as expected so it must be sth more complex.
When I open the dbfs I also create some temporary dbfs.
I use a simple if file() to check if there is already a temp file with
that name and if yes I change the file name by a char.
Could it be that check if not atomic enough and that two threads use
the same temporary dbf?

I could protect the dbfopen with a mutex. Is it safe to create a
static hash that holds the mutexes in the main thread and access it
using a function?

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

Reply via email to