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
60 isSending atomic.Uint8
62 blocked uint32 // number of goroutines blocked on timer's channel
89 when int64
90 period int64
91 f func(arg any, seq uintptr, delay int64)
92 arg any
93 seq uintptr
96 ts *timers
100 sendLock mutex
107 func (t *timer) init(f func(arg any, seq uintptr, delay int64), arg any) {
146 timer *timer member
193 func (t *timer) trace(op string) {
199 func (t *timer) trace1(op string) {
222 func (t *timer) lock() {
228 func (t *timer) unlock() {
238 func (t *timer) hchan() *hchan {
255 func (t *timer) updateHeap() (updated bool) {
333 timer anonMember
416 func (t *timer) maybeRunAsync() {
439 func (t *timer) stop() bool {
514 … modify(when, period int64, f func(arg any, seq uintptr, delay int64), arg any, seq uintptr) bool {
597 func (t *timer) needsAdd() bool {
626 func (t *timer) maybeAdd() {
662 func (t *timer) reset(when, period int64) bool {
1019 func (t *timer) unlockAndRun(now int64) {
1315 func (t *timer) maybeRunChan() {