Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use initialization-on-demand holder idiom #55

Open
wants to merge 1 commit into
base: 2.8.1-experimental
Choose a base branch
from

Conversation

maggu2810
Copy link

This gives us a highly efficient thread-safe "singleton" cache, without synchronization overhead...
(lecture: https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom)

The access modifier for the constructor was changed to private as this is normal for a singleton class.

This gives us a highly efficient thread-safe "singleton" cache, without
synchronization overhead...

lecture:
https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom
hiddenalpha pushed a commit to hiddenalpha/jssc that referenced this pull request May 18, 2021
- Adds the Unix javah-created header (also tested with MSVC) for creating builds on machines without (or with dated version of) maven.
- Adds a "cmake -E copy" task to copy the native libraries to src/main/resources-precompiled/natives; convenience for speeding up the time it takes to update the binary releases in the repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant