- To: netcdf-java@xxxxxxxxxxxxxxxx
- Subject: [netcdf-java] Variable object thread safe?
- From: Stuart Maclean <stuart@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Sep 2008 10:46:07 -0700
Is ucar.nc2.Variable intended to be thread safe, at least for
Variables in 'read' mode?? If I do this:
NetcdfFile nc = NetcdfFile.open( "foo.nc" ); Variable v = nc.findVariable( "v" ); then can I do calls like Array a = v.read( "section Spec" ); from many threads concurrently, with different sections obviously.Or is there state in a Variable that precludes this? I know I could trawl the source code but that is slow.
Apologies if this is a FAQ Stuart
- Follow-Ups:
- Re: [netcdf-java] Variable object thread safe?
- From: John Caron
- Re: [netcdf-java] Variable object thread safe?