Is there a way I can get to know which of thread is using the SpinLock
, which is locked by the thread.
For example, there is a l=SpinLock()
, and it is locked in threadid()=1. When the code runed into thread 2, how can I can get to know which thread locked the l
? It seems l.owned
does not works for this.