-
Notifications
You must be signed in to change notification settings - Fork 88
Description
Why do saej1979 and iso14230 timer functions disable debugging for callee functions? (Note: added in d6cecf3 .)
It is a non-essential feature as far as I understand?
The issue is that if you are going to override user settings locally, suddenly the diag_x_debug variables being global instead of parameter based becomes much uglier/hairier to reason about, at least it seems like that to me.
On the other hand, right now the accesses to the diag_x_debug variables are racy, and if there were not for those local overrides in the timer functions, the concurrency issues could be fixed by hiding the global variables behind atomic set/store and get/load functions (see the atomics stuff in proposed commit b9ccc01 "Add atomic types, funcs; fix with periodic timer deletion data race"), which would be nicer than using mutexes directly.