On Tue, 16 Jun 2009, Lorenzo Fiorini wrote: Hi,
> Today I've released my first 2.0.0beta1 based binaries to a selected customer. > Now I can start to introduce threads in the code and the idea is to > start with long lasting tasks like reports. > I'm looking if there is a way to clone the workareas instead of > reopening all the dbfs when the thread is started. What is the difference for you? > I've found a msg from Przemyslaw that says: > > WORKAREAs could go either way, but it simplifies concurrency to > > file locking for native file RDDs to have them thread local. Of course with > In Harbour it will works in the same way. You can also move WA between > threads. The xbase++ compatible functions dbRelease() and dbRequest() exist > in harbour. > In the future I'll add also support to clone workarea. Such cloned WA > will use common file IO handles, buffers and file lock pool. I'm also > thinking about adding pseudo exclusive mode which will be exclusive for > other applications but cloned WA will be synced internally without file > locks. > but I didn't found any other reference. Now in Harbour *nix builds reopened tables and indexes share file handles and lock queues. So far I haven't added shared IO buffers and pseudo exclusive mode with internal locking and I do not know when I will work on it. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour