This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix missing unlock in uniquequeue (
#9790
)
tags/v1.12.0-dev
zeripath
Lauris BH
5 years ago
parent
344e6ee9c8
commit
7e6584079b
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
modules/sync/unique_queue.go
+ 1
- 0
modules/sync/unique_queue.go
View File
@@ -82,6 +82,7 @@ func (q *UniqueQueue) AddFunc(id interface{}, fn func()) {
idStr := com.ToStr(id)
q.table.lock.Lock()
if _, ok := q.table.pool[idStr]; ok {
q.table.lock.Unlock()
return
}
q.table.pool[idStr] = struct{}{}
Write
Preview
Loading…
Cancel
Save