- Nov 04, 2024
-
-
c953a6f5 Use a Schwarz counter to manage singletons Acked-by:
Kitware Robot <kwrobot@kitware.com> Reviewed-by:
Mathieu Westphal (Kitware) <mathieu.westphal@kitware.com> Merge-request: !23
-
- Nov 01, 2024
-
-
David Gobbi authored
The Schwarz counter ensures that the singletons are available for the full lifetime of all translation units that include the header file "token/Singletons.h".
-
- Sep 09, 2024
-
-
ed80c18d Fix a warning (shadowed variable). Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !21
-
David Thompson authored
-
ed10f593 Bump the version to 24.09. 483b4cef Fix for singletons utility. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !19
-
David Thompson authored
-
David Thompson authored
The Singletons `TypeContainer` instance was calling the `token::Token` constructor inside finalizer methods after the `token::Manager` instance had been destroyed. Since the `Token` constructor attempts to store the input string in the manager, this could cause segfaults at exit. Instead, provide a new method to compute key hashes that does not add the input string to the `token::Manager` and call those methods when erasing keys from the type-container.
-
- Aug 26, 2024
-
-
8d290e50 Eliminate unneeded includes. ad2e2261 Eliminate bad whitespace. cd2d7d7d Fix for macos. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !17
-
David Thompson authored
-
David Thompson authored
-
David Thompson authored
-
f1931739 Bump the library version number. bf7bc6bf Fix for `token::Singletons()` when built statically. Acked-by:
Kitware Robot <kwrobot@kitware.com> Acked-by:
Ben Boeckel <ben.boeckel@kitware.com> Reviewed-by:
Mathieu Westphal (Kitware) <mathieu.westphal@kitware.com> Merge-request: !8
-
00d28f4a Be careful to always export templates. 5593f3af Fix the `token_NAMESPACE` cache-var. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !13
-
David Thompson authored
-
David Thompson authored
-
- Aug 17, 2024
-
-
David Thompson authored
Fixes from VTK See merge request dcthomp/token!10
-
David Thompson authored
-
David Thompson authored
-
David Thompson authored
-
- Aug 15, 2024
-
-
David Thompson authored
-
David Thompson authored
You should avoid building the token library statically, but if you must, this may prevent issues with the order in which initializers are invoked. The singleton is guarded with a mutex, but you must still use the returned container with care in threads as the container itself is not thread-safe. However, if your application can guarantee no threads insert/delete objects in the container, many threads can fetch objects from it simultaneously.
-
- Dec 01, 2023
-
-
David Thompson authored
Fixed a clang -Wundef warning See merge request dcthomp/token!6
-
- Nov 03, 2023
-
-
Sean McBride authored
-
- Sep 21, 2023
-
-
David Thompson authored
Fix the `token::Manager`'s invalid hash… See merge request dcthomp/token!3
-
David Thompson authored
… to be the hash of the empty string.
-
- Sep 20, 2023
-
-
David Thompson authored
Fix tokenize to work with user-provided namespaces. See merge request dcthomp/token!2
-
David Thompson authored
-
David Thompson authored
Add a singleton service, a readme, and … See merge request dcthomp/token!1
-
David Thompson authored
… a small utility to report hash numbers of strings.
-
- Sep 13, 2023
-