interrupt: fix interruptible functions without any interrupt context
If there are no interrupt contexts in the whole process, then the thread variable is uninitialized. This adds a check. Using thread_local would be much simpler and faster (but C11 threads).
Showing
Please register or sign in to comment