MCPcopy Index your code
hub / github.com/php/frankenphp / NewThreadState

Function NewThreadState

internal/state/state.go:88–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func NewThreadState() *ThreadState {
89 return &ThreadState{
90 currentState: Reserved,
91 subscribers: []stateSubscriber{},
92 mu: sync.RWMutex{},
93 }
94}
95
96func (ts *ThreadState) Is(state State) bool {
97 ts.mu.RLock()

Callers 2

newPHPThreadFunction · 0.92
initPHPThreadsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected