Hi @DirtyHairy thank you for the great lib!
I wanted to ask you if there's a way to cancel() some specific pending locks of a mutex? In the docs it states
Pending locks can be cancelled by calling cancel() on the mutex. This will reject all pending locks with E_CANCELED:
However, in some situations I want to cancel only a specific lock while leaving others waiting for the lock to become available. I took a quick look at the source code but didn't find a way of achieving this. Can you please provide some pointers about how to make this possible?
I guess that the runExclusive() will have to return an ID that later can be used to cancel (e.g., cancel(<ID>)) the pending lock.
Hi @DirtyHairy thank you for the great lib!
I wanted to ask you if there's a way to
cancel()some specific pending locks of a mutex? In the docs it statesHowever, in some situations I want to cancel only a specific lock while leaving others waiting for the lock to become available. I took a quick look at the source code but didn't find a way of achieving this. Can you please provide some pointers about how to make this possible?
I guess that the
runExclusive()will have to return an ID that later can be used to cancel (e.g.,cancel(<ID>)) the pending lock.