// if there are no active tasks in runq, a task
// from deferredQ is returned
// Give 1st priority to taskQ -if there are no more tasks, handout tasks from deferredQ
select {
case job, ok := <-rq.tasks:
if !ok {
Frontier kind: Code frontier
unlabeled · c_1f8008095768
7 tests · 1286 LOC · 58 files · introduces 0 tests · 21 LOC · 2 files
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 21 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
// if there are no active tasks in runq, a task
// from deferredQ is returned
// Give 1st priority to taskQ -if there are no more tasks, handout tasks from deferredQ
select {
case job, ok := <-rq.tasks:
if !ok {
}
return job, true
if task := rq.deferredTasks.remove(); task != nil {
return task.Value.(Task), true
}
// at this point, there are no tasks either in taskQ or deferredQ
// simply block on taskQ until we have tasks
case job, ok := <-rq.tasks:
if !ok {
// TaskCount returns the total of number of tasks currently outstanding
return atomic.LoadInt64(&e.outstanding)
}
func (e *fixedPoolExecutor) worker() {
defer e.stopWG.Done()
for e.alive() {
if !ok {
return
}
status := task.Run()