The constructor calls create, and finalize() calls release. Since each
of these can only happen once (enforced by Java), there is no fear of a
race condition.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
initialized = true;
}
- private static synchronized native int native_ceph_create(CephMount mount, String id);
+ private static native int native_ceph_create(CephMount mount, String id);
/**
* Create a new CephMount with default client id.
/*
* Private access to low-level ceph_release.
*/
- private static synchronized native int native_ceph_release(long mountp);
+ private static native int native_ceph_release(long mountp);
/**
* Load configuration from a file.