Search found 3 matches

by ezalys
Thu Apr 25, 2019 2:59 am
Forum: General Support
Topic: Difficulty understanding mutexes and context switching
Replies: 3
Views: 2775

Re: Difficulty understanding mutexes and context switching

Well okay, chCondSignalI is documented as saying that it doesn't reschedule and that ISRs reschedule on exit, answering my question. This would have also been obvious from reading the code. This codebase really is top-notch.
by ezalys
Thu Apr 25, 2019 2:50 am
Forum: General Support
Topic: Difficulty understanding mutexes and context switching
Replies: 3
Views: 2775

Re: Difficulty understanding mutexes and context switching

Okay after seeing that many non-S-class functions call the S-class variant I think I understand a bit better. Let me maybe ask about another example... Suppose I have a timing-sensitive ISR and I want to log a message through USB. The ISR stuffs a message in a mailbox that a USB-handling thread is ...
by ezalys
Wed Apr 24, 2019 4:00 pm
Forum: General Support
Topic: Difficulty understanding mutexes and context switching
Replies: 3
Views: 2775

Difficulty understanding mutexes and context switching

Ultimately my goal is to send messages from ISRs AND threads to a thread, but in my effort to understand how to do this, I've found myself pretty confused by the mutex example and it seems to indicate there's a lot I don't understand.

First of all, I don't understand the idea of rescheduling in the ...