Skip to content

Added an option to disable thread-safety.#106

Merged
vitalsong merged 1 commit intomasterfrom
feat/thread-local
Feb 19, 2026
Merged

Added an option to disable thread-safety.#106
vitalsong merged 1 commit intomasterfrom
feat/thread-local

Conversation

@vitalsong
Copy link
Owner

Some toolchains do not support thread_local (used for per-thread caches), so the CMake option DSPLIB_THREAD_SAFE has been introduced. In thread-safe mode (default), the macro DSPLIB_CACHE_T expands to thread_local; otherwise, it falls back to plain static, suitable for single‑threaded environments.

Some toolchains do not support thread_local (used for per-thread caches), so the CMake option DSPLIB_THREAD_SAFE has been introduced. In thread-safe mode (default), the macro DSPLIB_CACHE_T expands to thread_local; otherwise, it falls back to plain static, suitable for single‑threaded environments.
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
lib/fft/factory.cpp 100.00% <100.00%> (ø)
lib/random.cpp 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vitalsong vitalsong merged commit 2651389 into master Feb 19, 2026
23 of 25 checks passed
@vitalsong vitalsong deleted the feat/thread-local branch February 19, 2026 12:43
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