문제

Let say I add a job excJobAdd(myFunc, ...) which will get scheduled in the excTask. In the function I do a blocking call:

int myFunc(...) {
  ...
  semTake(...)
  ...
}

Assuming I never come out of the blocking call. What are the consequences?

One thing I can think of is:

  • All subsequent jobs to excTask will be blocked
도움이 되었습니까?

해결책

Though tExcTask is not a real ISR / exception, it still executes in ISR context. Try to do a blocking call in ISR context is illegal and raises the corresponding errno.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top