MLLinkWaitCallBackObject (C 函数)
MLLinkWaitCallBackObject 已经被 WSLinkWaitCallBackObject 所取代.
is a MathLink type representing a function pointer with the following declaration: int function(MLINK l, void *u), where l is a MathLink connection and u is reserved for future use.
更多信息

- MLLinkWaitCallBackObject is used with MLWaitForLinkActivityWithCallback().
- A function used as a MLLinkWaitCallBackObject should return 1 to indicate MLWaitForLinkActivityWithCallback() should return.
- MLLinkWaitCallBackObject is defined in the MathLink header file mathlink.h.
范例
基本范例 (1)
#include "mathlink.h"
int WaitFunction(MLINK l, void *unused)
{
return 0;
}
void f(MLINK l)
{
switch(MLWaitForLinkActivityWithCallback(l, (MLLinkWaitCallBackObject)WaitFunction))
{
catch MLWAITERROR:
/* handle the error. */
break;
catch MLWAITSUCCESS:
/* Read the data off the link */
break;
catch MLWAITCALLBACKABORTED:
default:
/* wait was aborted */
}
}