Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
destination: 'platform=watchOS Simulator,name=Apple Watch Series 11 (46mm)'
fail-fast: false
with:
# runsonlabels: '["macOS", "self-hosted"]'
runsonlabels: '["macOS", "self-hosted"]'
scheme: ThreadLocal
destination: ${{ matrix.platform.destination }}
buildConfig: ${{ matrix.config }}
Expand All @@ -48,6 +48,7 @@ jobs:
strategy:
matrix:
config: [Debug, Release]
fail-fast: false
with:
artifact_name: ${{ format('ThreadLocal-Linux-{0}.lcov', matrix.config) }}
uploadcoveragereport:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the ThreadLocal open-source project
#
# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -26,9 +26,9 @@ jobs:
swiftlint:
name: SwiftLint
uses: StanfordSpezi/.github/.github/workflows/swiftlint.yml@v2
# markdown_link_check:
# name: Markdown Link Check
# uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
markdown_link_check:
name: Markdown Link Check
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
breaking_changes:
name: Diagnose Breaking Changes
uses: StanfordSpezi/.github/.github/workflows/breaking-changes.yml@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand Down
2 changes: 1 addition & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand Down
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -15,6 +15,6 @@ authors:
- family-names: "Ravi"
given-names: "Vishnu"
orcid: "https://orcid.org/0000-0003-0359-1275"
title: "TemplatePackage"
title: "ThreadLocal"
doi: 10.5281/zenodo.7538165
url: "https://github.com/StanfordBDHG/SwiftPackageTemplate"
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
Copyright (c) 2025 Stanford University and the project authors (see CONTRIBUTORS.md)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2025 Stanford University and the project authors (see CONTRIBUTORS.md)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

This source file is part of the ThreadLocal open source project

SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT

-->

# ThreadLocal

[![Build and Test](https://github.com/lukaskollmer/ThreadLocal/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/lukaskollmer/ThreadLocal/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/lukaskollmer/ThreadLocal/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/lukaskollmer/ThreadLocal)
[![Build and Test](https://github.com/StanfordBDHG/ThreadLocal/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordBDHG/ThreadLocal/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordBDHG/ThreadLocal/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/StanfordBDHG/ThreadLocal)
<!-- [![DOI](https://zenodo.org/badge/573230182.svg)](https://zenodo.org/badge/latestdoi/573230182) -->
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flukaskollmer%2FThreadLocal%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/lukaskollmer/ThreadLocal)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flukaskollmer%2FThreadLocal%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/lukaskollmer/ThreadLocal)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FThreadLocal%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal)

Check failure on line 16 in README.md

View workflow job for this annotation

GitHub Actions / Markdown Link Check / Check Links

[Linkspector] reported by reviewdog 🐶 Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403 Raw Output: message:"Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403" location:{path:"README.md" range:{start:{line:16 column:1} end:{line:16 column:213}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FThreadLocal%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal)

Check failure on line 17 in README.md

View workflow job for this annotation

GitHub Actions / Markdown Link Check / Check Links

[Linkspector] reported by reviewdog 🐶 Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403 Raw Output: message:"Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403" location:{path:"README.md" range:{start:{line:17 column:1} end:{line:17 column:208}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}

Thread-local variables for Swift.

Expand All @@ -34,7 +34,7 @@

You can use non-trivial types with thread-local variables, and can provide a custom deallocator if needed (see ``ThreadLocal(deallocator:)``).

See [the documentation](https://swiftpackageindex.com/lukaskollmer/ThreadLocal) for more info.
See [the documentation](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal) for more info.

Check failure on line 37 in README.md

View workflow job for this annotation

GitHub Actions / Markdown Link Check / Check Links

[Linkspector] reported by reviewdog 🐶 Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403 Raw Output: message:"Cannot reach https://swiftpackageindex.com/StanfordBDHG/ThreadLocal Status: 403" location:{path:"README.md" range:{start:{line:37 column:5} end:{line:37 column:80}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}


## Installation
Expand All @@ -43,16 +43,16 @@

**Xcode:** For an Xcode project, follow the instructions on [adding package dependencies to your app](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).

**Swift Package:** You can follow the [Swift Package Manager documentation about defining dependencies](https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#defining-dependencies) to add this project as a dependency to your Swift Package.

Check failure on line 46 in README.md

View workflow job for this annotation

GitHub Actions / Markdown Link Check / Check Links

[Linkspector] reported by reviewdog 🐶 Cannot reach https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#defining-dependencies Status: 404 Raw Output: message:"Cannot reach https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#defining-dependencies Status: 404" location:{path:"README.md" range:{start:{line:46 column:39} end:{line:46 column:207}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}


## License
This project is licensed under the MIT License. See [Licenses](https://github.com/lukaskollmer/ThreadLocal/tree/main/LICENSES) for more information.
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordBDHG/ThreadLocal/tree/main/LICENSES) for more information.

Check failure on line 50 in README.md

View workflow job for this annotation

GitHub Actions / Markdown Link Check / Check Links

[Linkspector] reported by reviewdog 🐶 Cannot reach https://github.com/StanfordBDHG/ThreadLocal/tree/main/LICENSES Status: 404 Raw Output: message:"Cannot reach https://github.com/StanfordBDHG/ThreadLocal/tree/main/LICENSES Status: 404" location:{path:"README.md" range:{start:{line:50 column:53} end:{line:50 column:127}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}


## Contributors
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University.
See [CONTRIBUTORS.md](https://github.com/lukaskollmer/ThreadLocal/tree/main/CONTRIBUTORS.md) for a full list of all TemplatePackage contributors.
This project is developed as part of the Stanford Mussallem Center for Biodesign at Stanford University.
See [CONTRIBUTORS.md](https://github.com/lukaskollmer/ThreadLocal/tree/main/CONTRIBUTORS.md) for a full list of all ThreadLocal contributors.

![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only)
![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only)
2 changes: 1 addition & 1 deletion Sources/ThreadLocal/Macros.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
10 changes: 10 additions & 0 deletions Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# ``ThreadLocal``

<!--
#
# This source file is part of the ThreadLocal open source project
#
# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
-->

Thread-local variables for Swift.

## Overview
Expand Down
2 changes: 1 addition & 1 deletion Sources/ThreadLocal/ThreadLocal.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ThreadLocalMacros/Diagnostic.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ThreadLocalMacros/ThreadLocalMacro.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
2 changes: 1 addition & 1 deletion Sources/ThreadLocalMacros/ThreadLocalMacros.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThreadLocalTests/ThreadLocalMacroTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThreadLocalTests/ThreadLocalTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// This source file is part of the ThreadLocal open source project
//
// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md)
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
Expand Down
Loading