Example #1
0
// 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(),
	}
}
Example #2
0
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
}