stdio hardening + new mutex API #1224

Merged
kilograham merged 2 commits from stdio_deadlock_protection into develop 2023-02-06 16:27:39 -06:00
kilograham commented 2023-02-05 18:04:06 -06:00 (Migrated from github.com)
  • Harden stdio_usb and stdio in general against deadlocks which could otherwise result from doing printfs from within IRQs
  • Add a test for the above
  • Add mutex_try_enter_block_until API.
  • Make best_effort_wfe_or_timeout not use alarms if called from within IRQ
* Harden stdio_usb and stdio in general against deadlocks which could otherwise result from doing printfs from within IRQs * Add a test for the above * Add mutex_try_enter_block_until API. * Make best_effort_wfe_or_timeout not use alarms if called from within IRQ
Wren6991 (Migrated from github.com) reviewed 2023-02-05 18:04:06 -06:00
liamfraser (Migrated from github.com) reviewed 2023-02-05 18:04:06 -06:00
kilograham commented 2023-02-05 18:05:12 -06:00 (Migrated from github.com)

fixes #1039

fixes #1039
kilograham commented 2023-02-05 18:05:27 -06:00 (Migrated from github.com)

fixes #1078 (probably)

fixes #1078 (probably)
peterharperuk (Migrated from github.com) reviewed 2023-02-06 09:03:20 -06:00
@ -126,20 +124,28 @@ static void stdio_usb_out_chars(const char *buf, int length) {
}
peterharperuk (Migrated from github.com) commented 2023-02-06 09:03:19 -06:00

did you mean to leave this code commented out

did you mean to leave this code commented out
peterharperuk (Migrated from github.com) reviewed 2023-02-06 09:06:12 -06:00
@ -126,20 +124,28 @@ static void stdio_usb_out_chars(const char *buf, int length) {
}
peterharperuk (Migrated from github.com) commented 2023-02-06 09:06:11 -06:00

ah - I see the second commit now

ah - I see the second commit now
kilograham (Migrated from github.com) reviewed 2023-02-06 09:06:29 -06:00
@ -126,20 +124,28 @@ static void stdio_usb_out_chars(const char *buf, int length) {
}
kilograham (Migrated from github.com) commented 2023-02-06 09:06:29 -06:00

no, but i had already fixed that!

no, but i had already fixed that!
peterharperuk (Migrated from github.com) approved these changes 2023-02-06 09:08:16 -06:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!1224
No description provided.