How to unlock a rwlock without dropping the lock

后端 未结 0 419
粉色の甜心
粉色の甜心 2021-01-27 11:01

How to unlock a rwlock, i can\'t drop the lock since i need it more than 1 time. I have a struct like this:

struct Abc {
    lock: RwLock<()>,
    data: usi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题