Skip to content

Move the pthread_once call earlier in rans_enc_func / rans_dec_func.#138

Merged
daviesrob merged 1 commit into
samtools:masterfrom
jkbonfield:thread-race-cpu-init
Jul 1, 2025
Merged

Move the pthread_once call earlier in rans_enc_func / rans_dec_func.#138
daviesrob merged 1 commit into
samtools:masterfrom
jkbonfield:thread-race-cpu-init

Conversation

@jkbonfield
Copy link
Copy Markdown
Collaborator

This fixes a thread data access race on the first time through the function, although it's pretty harmless as a consequence of the race is we may provide a optimal codec implementation.

This fixes a thread data access race on the first time through the
function, although it's pretty harmless as a consequence of the race
is we may provide a optimal codec implementation.
@daviesrob daviesrob merged commit 5392126 into samtools:master Jul 1, 2025
6 checks passed
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.

2 participants