Re: [Dar-libdar_api] Empty option for testing archives
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Johnathan B. <jk...@ro...> - 2007-05-26 13:22:05
|
Hi Denis, > > the archive pointed to by 'a' is passed to both threads thus the same > variable is modified by both threads at the same time. Morevoer, the > archive::op_test method() is not a constant method, but OK, I am not > sure that all const methods of the API can be used without mutex by > different threads on the same object at the same time. I will double > check this right now. > > To solve your problem I would create two archive objects (yes, memory > will suffer) or avoid using concurrent thread here. Is it possible to get a copy constructor for archive::archive? Better still, would it be possible to have an "archive archive::isolate()" function to obtain a copy of an isolated archive without writing it to disk? That would give an opportunity to run empty methods on a small copy of the archive in a concurrent thread. > Regards, > Denis. Cheers, JB |