-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create abstraction for pthread_once()/InitOnceExecuteOnce() calls to …
…avoid boilerplate code in many places and also to make other implementations possible. Some (e.g.) DSP targets don't have a working version of pthreads, so we can't rely on `pthreads_once()`. This provides a single bottleneck we can use to customize for those targets (rather than dozens spread across dozens of files), and makes the code pleasantly terser. Note that this change should be functionally a no-op, just code refactoring to make upcoming changes more seamless. PiperOrigin-RevId: 659672037
- Loading branch information
1 parent
c4a28da
commit f1f7e46
Showing
32 changed files
with
374 additions
and
2,101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.