コード例 #1
0
ファイル: list.go プロジェクト: turing-complete/time
// NewList creates a new list scheduler for the given platform and application.
func NewList(platform *system.Platform, application *system.Application) *List {
	return &List{
		platform:    platform,
		application: application,
		roots:       application.Roots(),
	}
}
コード例 #2
0
ファイル: main.go プロジェクト: turing-complete/laboratory
func explore(application *system.Application) []uint {
	nt := uint(len(application.Tasks))
	depth := make([]uint, nt)
	for _, l := range application.Leafs() {
		ascend(application, depth, l)
	}
	return depth
}