Are thread holding spinlocks deletion safe?
I mean if say a thread t1 is holding a spinlock, then can an another thread t2 wanting the spinlock delete the thread t1 if t1 is not releasing the spinlock?
on 07/02/2012 – Made popular on 07/02/2012
I want to modify spin_lock & spin_unlock API in spinlock.h of 188.8.131.52. I want to add a counter for each core so that every time a lock is taken on a core, its counter in incremented and decremented when spin_lock is called. At any point of time I can get lock_depth of each core.