Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Make access to the netcdf-c library be synchronized #777

Merged
merged 2 commits into from
Mar 12, 2017
Merged

Conversation

DennisHeimbigner
Copy link
Contributor

Upgrade to net.java.dev.jna:jna:4.2.2
so that we can use Native.synchronizedLibrary()
to force synchronized (single-thread) access to
the netcdf-c library.

This is effectively a back-port of what already was done for 5.0.0

so that we can use Native.synchronizedLibrary()
to force synchronized (single-thread) access to
the netcdf-c library.
@DennisHeimbigner DennisHeimbigner changed the base branch from 5.0.0 to master March 12, 2017 20:50
@lesserwhirls lesserwhirls merged commit 6186871 into master Mar 12, 2017
@lesserwhirls
Copy link
Collaborator

Thanks @DennisHeimbigner!

@cwardgar
Copy link
Contributor

So does this obviate the need to build hdf5 with --enable-threadsafe for THREDDS? That would be big, as it would allow users to grab netcdf from a package manager, instead of needing to build it themselves.

@lesserwhirls
Copy link
Collaborator

That's the hope...also the hope that this fixes the issues on motherlode (although it does not help the issues building the dang thing, but nothing in Java that will help that!).

@DennisHeimbigner
Copy link
Contributor Author

DennisHeimbigner commented Mar 13, 2017 via email

@DennisHeimbigner DennisHeimbigner deleted the nc4sync.dmh branch March 14, 2017 19:11
jonescc pushed a commit to aodn/thredds that referenced this pull request Sep 11, 2018
so that we can use Native.synchronizedLibrary()
to force synchronized (single-thread) access to
the netcdf-c library.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants