Lines Matching defs:timer
25 type timer struct { struct
27 mu mutex
29 astate atomic.Uint8 // atomic copy of state bits at last unlock
30 state uint8 // state bits
31 isChan bool // timer has a channel; immutable; can be read without lock
33 blocked uint32 // number of goroutines blocked on timer's channel
60 when int64
61 period int64
62 f func(arg any, seq uintptr, delay int64)
63 arg any
64 seq uintptr
67 ts *timers
71 sendLock mutex
85 isSending atomic.Int32
92 func (t *timer) init(f func(arg any, seq uintptr, delay int64), arg any) {
131 timer *timer member
178 func (t *timer) trace(op string) {
184 func (t *timer) trace1(op string) {
207 func (t *timer) lock() {
213 func (t *timer) unlock() {
223 func (t *timer) hchan() *hchan {
240 func (t *timer) updateHeap() (updated bool) {
318 timer anonMember
401 func (t *timer) maybeRunAsync() {
424 func (t *timer) stop() bool {
499 … modify(when, period int64, f func(arg any, seq uintptr, delay int64), arg any, seq uintptr) bool {
583 func (t *timer) needsAdd() bool {
612 func (t *timer) maybeAdd() {
648 func (t *timer) reset(when, period int64) bool {
1005 func (t *timer) unlockAndRun(now int64) {
1299 func (t *timer) maybeRunChan() {