pool.mu.Unlock()
for elem := buffer.Front(); elem != nil; elem = elem.Next() {
}
}
Frontier kind: Joint frontier
unlabeled · c_999df63dbbf8
1 test · 1695 LOC · 66 files · introduces 1 test · 53 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.
go.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
1 test introduced at this concept.
Every collected source range enters the hierarchy at exactly one concept.
2 files ranked by introduced lines: 53 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
pool.mu.Unlock()
for elem := buffer.Front(); elem != nil; elem = elem.Next() {
}
}
pool.mu.Lock()
if pool.runningGoroutines >= pool.limiter.Concurrency() {
pool.mu.Unlock()
pool.wg.Done()
if enqueued {
metrics.DynamicWorkerPoolSchedulerEnqueuedTasks.With(pool.metricsHandler).
Record(1)
} else {
metrics.DynamicWorkerPoolSchedulerRejectedTasks.With(pool.metricsHandler).
Record(1)
}
return enqueued
}
pool.runningGoroutines++
break
}
pool.mu.Unlock()
metrics.DynamicWorkerPoolSchedulerDequeuedTasks.With(pool.metricsHandler).
Record(1)
}
}
func (pool *DynamicWorkerPoolScheduler) dequeueLocked() (task Runnable, ok bool) {
if elem := pool.buffer.Front(); elem != nil {
pool.buffer.Remove(elem)
pool.bufferSize--
return task, true
}
return task, false
}
// Returns true if the task was enqueued, otherwise returns false.
// Must be called while holding the lock.
func (pool *DynamicWorkerPoolScheduler) tryEnqueueLocked(task Runnable) bool {
dynamic_worker_pool_scheduler.go
if pool.buffer.Len() < pool.limiter.BufferSize() {
pool.buffer.PushBack(task)
pool.bufferSize++
return true
}
return false
}
// NewMockRunnable creates a new mock instance.
mock := &MockRunnable{ctrl: ctrl}
mock.recorder = &MockRunnableMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
return m.recorder
}
// Abort mocks base method.
m.ctrl.T.Helper()
m.ctrl.Call(m, "Abort")
}
// Abort indicates an expected call of Abort.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockRunnable)(nil).Abort))
}
// Run mocks base method.
m.ctrl.T.Helper()
m.ctrl.Call(m, "Run", arg0)
}
// Run indicates an expected call of Run.
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockRunnable)(nil).Run), arg0)
}
// MockTask is a mock of Task interface.