forked from google/pigweed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_clock_tree: Introduce Element may_block()
This change introduces the `may_block()` function for the `Element` class. The `ElementBlocking` class sets the constructor argument `may_block` to true, all other derived classes set `may_block` to false. In a subsequent change the `ClockTree` class will use the `may_block()` function call to determine whether to acquire the `interrupt_spin_lock_` or the `mutex_` to synchronize acceess to the respective clock tree elements. Bug: 331672574 Change-Id: I5196ff418f59bd8261f843981d62ab2d250ef71c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/211148 Lint: Lint 🤖 <[email protected]> Commit-Queue: Austin Foxley <[email protected]> Reviewed-by: Austin Foxley <[email protected]>
- Loading branch information
Christoph Klee
authored and
CQ Bot Account
committed
May 24, 2024
1 parent
b658add
commit e27b083
Showing
2 changed files
with
24 additions
and
3 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