Description
Clause 9.5 Jobs and Host Operations to Enqueue Jobs
At some future point in time, when there is no running context in the agent for which the job is scheduled and that agent's execution context stack is empty, the implementation must ...
Is it even possible for there to be a 'running context' while the 'execution context stack' is empty?
According to Clause 9.4 Execution Contexts:
The execution context stack is used to track execution contexts. The running execution context is always the top element of this stack.
which means the running context must always be part of the execution context stack. Therefore, the stack cannot be empty if a running context exists.
If my understanding is correct, then the statement I referenced above is misleading.
Perhaps it would be more accurate to rephrase it as:
'At some future point in time, when the agent's execution context stack is empty...'