search for: refcntr

Displaying 2 results from an estimated 2 matches for "refcntr".

Did you mean: refcnts
2014 May 04
2
Xapian::Document and threads
...ecoll indexer, I have come to a very basic question: is it safe to pass a copy of a Xapian::Document from thread to thread (multiple threads queue documents, other thread updates the index) ? I don't seem to get directly into trouble while doing this, but I don't see anything either in the RefCntr implementation which would explicitely make it thread-safe, so I am wondering. Maybe I'm just missing the obvious. Of course, I could create the docs on the heap instead, and pass pointers, but is this needed ? Cheers, jf
2014 May 05
2
Xapian::Document and threads
...it safe to pass a copy of a > > Xapian::Document from thread to thread (multiple threads queue documents, > > other thread updates the index) ? > > > > I don't seem to get directly into trouble while doing this, but I don't see > > anything either in the RefCntr implementation which would explicitely make > > it thread-safe, so I am wondering. Maybe I'm just missing the obvious. > > http://getting-started-with-xapian.readthedocs.org/en/latest/concepts/concurrency.html This only warns about documents read from the index and sharing Data...