Commit Graph

6 Commits

Author SHA1 Message Date
Rob Mohr
9c266ab645 Run buildifier on several BUILD files
Change-Id: I5eb6bf833c968b366db2e250843ac5664766490d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/48861
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-06-15 01:12:21 +00:00
Prashanth Swaminathan
3b1536d1f0 pw_multisink: Send notifications to listeners
Listeners can now be attached to multisinks, which are notified when
entries are pushed into the ring buffer or dropped on ingress. Listener
implementations might use this to schedule tasks to fetch entries from
the corresponding drains.

No-Docs-Update-Reason: Doc updates coming in follow-up change.
Change-Id: I16be7bf5792c829bcda38edce5a5be7b5a0f373d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/39463
Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-05-22 03:09:31 +00:00
Prashanth Swaminathan
76cd48178d pw_multisink: Lock multisink operations
Guards all multisink transactions with a lock. The new configuration
option PW_MULTISINK_LOCK_INTERRUPT_SAFE allows the project to select
the type of lock used to guard transactions. By default, it is enabled
and makes use of an interrupt spin-lock. If disabled, a mutex is used
instead.

Change-Id: I71ab2729d130c524da27e0d06beb0c3fdf73d145
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/45720
Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com>
Pigweed-Auto-Submit: Prashanth Swaminathan <prashanthsw@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-05-18 20:40:19 +00:00
Wyatt Hepler
f298de4260 pw_assert: Switch to the new header names
Bug: 350
Change-Id: Ia395cebedba24c9463e558059ebdb516759253e2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38740
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-04-30 00:33:37 +00:00
Nathaniel Brough
a1113be66c workspace: Adding bazel build formatter/linter
Adds in buildifier bazel targets that autoformat/lint the entire
WORKSPACE. This can be invoked by running;

'bazel run //:buildifier'

or

'bazel run //:buildifier_test'

Change-Id: Iaaf7f6241e29894eca94aa6b5d0ca3b33255b7f7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/36160
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
2021-04-18 18:56:15 +00:00
Prashanth Swaminathan
f36832ae47 pw_multisink: Add multisink implementation
Change-Id: If2383fefcc9f8be565b92c54b5c7612e7a104a9a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/31041
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com>
2021-03-16 16:08:18 +00:00