The OpenD Programming Language

Scheduler.start

Spawns the supplied op and starts the Scheduler.

This is intended to be called at the start of the program to yield all scheduling to the active Scheduler instance. This is necessary for schedulers that explicitly dispatch threads rather than simply relying on the operating system to do so, and so start should always be called within main() to begin normal program execution.

interface Scheduler
void
start
(
void delegate
()
op
)

Parameters

op void delegate
()

A wrapper for whatever the main thread would have done in the absence of a custom scheduler. It will be automatically executed via a call to spawn by the Scheduler.

Meta