Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gostnops
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
eeb1680e
Commit
eeb1680e
authored
Nov 22, 2020
by
watermelon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix task_pool AddTaskAlways
parent
0cdef164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
task_pool.go
sync/task_pool.go
+6
-0
No files found.
sync/task_pool.go
View file @
eeb1680e
...
...
@@ -267,6 +267,12 @@ func (p *taskPoolSimple) AddTask(t task) bool {
func
(
p
*
taskPoolSimple
)
AddTaskAlways
(
t
task
)
{
select
{
case
<-
p
.
done
:
return
default
:
}
select
{
case
p
.
work
<-
t
:
return
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment