Skip to content

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
Development

Successfully merging this pull request may close these issues.

1 participant