Skip to content

go-delayqueue #1

@jerk1991

Description

@jerk1991

type wheel struct {
// NotifyTasks []*Task
//所有在时间轮上的任务均采用链表形式存储
//如果采用数组,对应已经执行过的任务,会造成不必要的空间浪费或者数组移动造成的时间复杂度
NotifyTasks *Task
}
这个做不到无锁吧?如果不加锁的话,多起几个goroutine进行PUSH会有问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions