Logo Search packages:      
Sourcecode: csound version File versions  Download package

PUBLIC void csoundSetYieldCallback ( void *  csound,
int(*)(void *csound)  yieldCallback 
)

Called by external software to set a function for checking system events, yielding cpu time for coopertative multitasking, etc.. This function is optional. It is often used as a way to 'turn off' Csound, allowing it to exit gracefully. In addition, some operations like utility analysis routines are not reentrant and you should use this function to do any kind of updating during the operation.

Returns an 'OK to continue' boolean

Definition at line 940 of file csound.c.

  {
    csoundYieldCallback_ = yieldCallback;
  }


Generated by  Doxygen 1.6.0   Back to index