Provide a runtime toggle for thread safety

Open
#3,226 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
testing

Research direction

Start by reading how Catch2 currently implements thread safety and the feasibility thoughts mentioned in the issue; no files or tests are identified in the report. Determine whether a runtime toggle can support statically linked users choosing the performance trade-off, then define the behavior and tests before implementation. Done means users can select whether thread safety is enabled at runtime.

Written by the indexing model from the issue text.

Description

Description
Please provide a runtime toggle for thread safety if possible. This would provide much more flexibility for users who use static linking to decide if they want to pay the performance cost for thread safety or not. @philsquared has started looking into the feasibility of this and has some thoughts, I'll let him chime in if he's so inclined

Dominant language
C++
Stars
21.6k
Forks
3.4k
Avg merge
3d 12h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from catchorg/Catch2

All issues in catchorg/Catch2

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.