timer

package
v0.0.0-...-23e819b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

time wheel github.com/cloudwu/skynet/blob/master/skynet-src/skynet_timer.c

Index

Constants

View Source
const (
	TIME_NEAR_SHIFT  = 8
	TIME_NEAR        = 256
	TIME_LEVEL_SHIFT = 6
	TIME_LEVEL       = 64
	TIME_NEAR_MASK   = 255
	TIME_LEVEL_MASK  = 63
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

func (*Node) RunFunc

func (n *Node) RunFunc()

func (*Node) String

func (n *Node) String() string

type Timer

type Timer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(d time.Duration) *Timer

func (*Timer) NewTimer

func (t *Timer) NewTimer(d time.Duration, fn interface{}, arg interface{}) *Node

func (*Timer) Start

func (t *Timer) Start()

func (*Timer) Stop

func (t *Timer) Stop()

func (*Timer) String

func (t *Timer) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL