condition_variable_impl.go ×1

Frontier kind: Code frontier

unlabeled · c_b72f58d51010

5 tests · 31 LOC · 1 file · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3 ranges31 lines · 1 file · Browse complete extent
All tests (intent)
5 testsBrowse complete intent

Neighbourhood graph

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.

Introduced files, introduced tests, and structurally relevant concept specializationpriority_mutex_impl.go ×4 · 7 introduced LOCpriority_mutex_impl.go ×…condition_variable_impl.go ×1 · 1 introduced LOCcondition_variable_impl.…TestBroadcast · 0 introduced LOCTestBroadcastcondition_variable_impl.go ×1 · 6 introduced LOCcondition_variable_impl.…condition_variable_impl.go ×1 · 1 introduced LOCcondition_variable_impl.…condition_variable_impl.go ×1 · 1 introduced LOCcondition_variable_impl.…condition_variable_impl.go ×2 · 11 introduced LOCcondition_variable_impl.…TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/locks/condition_variable_impl.go · 86 LOClocks/condition_variable…go.temporal.io/server/common/locks/priority_mutex_impl.go · 153 LOClocks/priority_mutex_imp…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestBroadcast · introduced test · go.temporal.io/server/common/locks/TestConditionVariableSuite/TestBroadcastTestBroadcastTestCase_ProducerConsumer · introduced test · go.temporal.io/server/common/locks/TestConditionVariableSuite/TestCase_ProducerConsumerTestCase_ProducerConsume…TestChannelSize_New · introduced test · go.temporal.io/server/common/locks/TestConditionVariableSuite/TestChannelSize_NewTestChannelSize_NewTestInterrupt · introduced test · go.temporal.io/server/common/locks/TestConditionVariableSuite/TestInterruptTestInterruptTestSignal · introduced test · go.temporal.io/server/common/locks/TestConditionVariableSuite/TestSignalTestSignalTestLock_Mixed · introduced test · go.temporal.io/server/common/locks/TestPriorityMutexSuite/TestLock_MixedTestLock_MixedFocused concept · condition_variable_impl.go ×1 · 20 introduced LOCcondition_variable_impl.…

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

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.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 20 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/locks/condition_variable_impl.go 20 introduced LOC · 1 range

Open complete file

55 func (c *ConditionVariableImpl) Wait(
56 interrupt <-chan struct{},
58 >
59 > c.chanLock.Lock()
60 > channel := c.channel
61 > c.chanLock.Unlock()
62 >
63 > // user provided lock must be released after getting the above channel
64 > // so channel to be waited on < release of user lock < acquire of user lock < signal / broadcast
65 > // ```
66 > // That is, if another thread is able to acquire the mutex after the about-to-block
67 > // thread has released it, then a subsequent call to pthread_cond_signal() or
68 > // pthread_cond_broadcast() in that thread behaves as if it were issued after the
69 > // about-to-block thread has blocked.
70 > // ref: https://pubs.opengroup.org/onlinepubs/007908799/xsh/pthread_cond_wait.html
71 > // ```
72 >
73 > c.lock.Unlock()
74 > defer c.lock.Lock()
75 >
76 > select {
77 case <-channel:
78 // received signal