MidiExec1DTask


Processes the first time delayed task on wait in the applications queue. The time delayed tasks scheduled by MidiDTask are not processed at a given time, but instead must be called using MidiExec1DTask which executes the first task in its queue.

pascal void    MidiExec1DTask (short refnum);

refNum
a 16-bit integer, it is the reference number of the application.


Execute the waiting DTasks of a MidiShare application.


void ExecuteAllDTasks(short refNum)
{
    long    n;

    for (n=MidiCountDTasks(refNum), n>0; nÑ)
    {
        MidiExec1DTask(refNum);
    }
}

Generally this function is called from within an applications 'main' function, and as this is not under interruption it is possible to perform operating system calls.