Skip to content

Avoid some more potential data race conditions.#733

Merged
thomasvl merged 1 commit into
google:mainfrom
thomasvl:data_race
Jun 4, 2026
Merged

Avoid some more potential data race conditions.#733
thomasvl merged 1 commit into
google:mainfrom
thomasvl:data_race

Conversation

@thomasvl

@thomasvl thomasvl commented Jun 4, 2026

Copy link
Copy Markdown
Member

Use dispatch_once instead of a static BOOL to guard the work.

While at it, remove one use of @synchronized to instead standardize on just dispatch_once.

Use `dispatch_once` instead of a `static BOOL` to guard the work.

While at it, remove one use of `@synchronized` to instead standardize on just
`dispatch_once`.
@thomasvl thomasvl requested a review from dmaclach June 4, 2026 13:12
Comment thread Sources/Core/GTLRRuntimeCommon.m
Comment thread Sources/Core/GTLRUtilities.m
@thomasvl thomasvl merged commit 3065fd3 into google:main Jun 4, 2026
32 checks passed
@thomasvl thomasvl deleted the data_race branch June 4, 2026 15:56
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