MPCallback

Definition


#include <revolution/mp.h>

typedef void (*MPCallback)( s32 result, MPCallbackInfo *info );

Arguments

result Returns the processing result value.
info Parameter passed to each type of callback.

Return Values

None.

Description

MPCallback is the MP library's asynchronous function callback function type.

Callback functions are called from the MP library's callback thread.
This is not an interrupt callback, so thread synchronizing functions can be called. However, if a block takes too long, it will impact MP communications. Blocking should be kept to the minimum needed for exceptions.
In some cases you should consider the means to receive and pass data without blocking, using OSMessageQueue, etc.

See Also

MPSendAsync(), MPUpdateBeaconAsync(), MPCallbackType, MPCallbackInfo

Revision History

2007/11/28 Initial version.


CONFIDENTIAL