This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
common
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
解决BucketPool关闭之后Pool内有些数据未消费的问题
feature_wq
Sydonian
8 months ago
parent
3a90a6cb52
commit
94506dcdff
1 changed files
with
5 additions
and
5 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-5
utils/sync2/bucket_pool.go
+ 5
- 5
utils/sync2/bucket_pool.go
View File
@@ -52,12 +52,12 @@ func (p *BucketPool[T]) GetFilled() (T, bool) {
p.filledCond.L.Lock()
p.filledCond.L.Lock()
defer p.filledCond.L.Unlock()
defer p.filledCond.L.Unlock()
if p.closed {
var t T
return t, false
}
if len(p.filled) == 0 {
if len(p.filled) == 0 {
if p.closed {
var t T
return t, false
}
p.filledCond.Wait()
p.filledCond.Wait()
}
}
Write
Preview
Loading…
Cancel
Save