Andrea Aime wrote:
> I was wondering, is that (grabbing  the write lock while still 
> possessing a read lock) supposed
> to be happening, or is it just a bug in how the lock calls  are being 
> made?
It was intensional; we need to actually read the shapefile in order to 
make a copy of it (ie in order to write it). As such we make
use of the normal shapefilereader code which is written to aquire a read 
lock). We could change it to make use of a boolean parameter
on construction to control what kind of lock it attempts to obtain.

Jody

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to