I don't see how that could block for very long.

The number of instructions in the critical section is not relevant if the thread holding the lock gets pre-empted. That's the definition of priority inversion.

Of course the shorter the critical section, the less likely priority inversion will ever happen.

@Michael, I guess you need to also consider whether lock contention is actually possible. A spinlock on a never-contended lock would be safe for example.

Ross.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to