mutex锁中一种互斥锁,如果有多个goroutine需要对同一变量进行修改则需要对该变量施加mutex锁以实现安全读写。
golang中的mutex锁
猜你喜欢
转载自www.cnblogs.com/Csir/p/9851759.html
今日推荐
周排行