Is your feature request related to a problem? Please describe.
Trying to build and run bpftime gave above as an issue. It was recommending to use pthread_rwlock_t and pthread_mutex instead of pthread_spinlock_t. After discussion with @Officeyutong and @yunwei37 they suggested to write own spinlock implementation.
Is your feature request related to a problem? Please describe.
Trying to build and run
bpftime
gave above as an issue. It was recommending to usepthread_rwlock_t
andpthread_mutex
instead ofpthread_spinlock_t
. After discussion with @Officeyutong and @yunwei37 they suggested to write ownspinlock
implementation.Describe the solution you'd like
Create your own spinlock implementation which works well with bpftime: https://medium.com/@joao_vaz/spin-lock-in-modern-c-with-atomics-memory-barriers-and-exponential-back-off-522798aca817