- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for timeTimer (0.21 sec)
-
src/runtime/time_test.go
} return frames, nil } func TestTimeTimerType(t *testing.T) { // runtime.timeTimer (exported for testing as TimeTimer) // must have time.Timer and time.Ticker as a prefix // (meaning those two must have the same layout). runtimeTimeTimer := reflect.TypeOf(runtime.TimeTimer{}) check := func(name string, typ reflect.Type) { n1 := runtimeTimeTimer.NumField() n2 := typ.NumField()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 03:40:04 UTC 2024 - 3.1K bytes - Viewed (0) -
src/runtime/time.go
func resetForSleep(gp *g, _ unsafe.Pointer) bool { gp.timer.reset(gp.sleepWhen, 0) return true } // A timeTimer is a runtime-allocated time.Timer or time.Ticker // with the additional runtime state following it. // The runtime state is inaccessible to package time. type timeTimer struct { c unsafe.Pointer // <-chan time.Time init bool timer }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 14:36:24 UTC 2024 - 37.5K bytes - Viewed (0) -
src/runtime/export_test.go
const TracebackInnerFrames = tracebackInnerFrames const TracebackOuterFrames = tracebackOuterFrames var MapKeys = keys var MapValues = values var LockPartialOrder = lockPartialOrder type TimeTimer = timeTimer type LockRank lockRank func (l LockRank) String() string { return lockRank(l).String() } const PreemptMSupported = preemptMSupported type LFNode struct { Next uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/log/slog/value.go
} type ( // Unexported version of *time.Location, just so we can store *time.Locations in // Values. (No user-provided value has this type.) timeLocation *time.Location // timeTime is for times where UnixNano is undefined. timeTime time.Time ) // TimeValue returns a [Value] for a [time.Time]. // It discards the monotonic portion. func TimeValue(v time.Time) Value { if v.IsZero() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/net/http/h2_bundle.go
} // A timer is a time.Timer, as an interface which can be replaced in tests. type http2timer = interface { C() <-chan time.Time Reset(d time.Duration) bool Stop() bool } // timeTimer adapts a time.Timer to the timer interface. type http2timeTimer struct { *time.Timer } func (t http2timeTimer) C() <-chan time.Time { return t.Timer.C } const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0)