Bluetooth Framework C++ Edition

◆ Synchronize()

int Synchronize ( const void *const  Param)
protected

Executes a method call within the main thread.

Parameters
ParamA pointer to any user-defined data.
Returns
If the function succeed the returns value is WCL_E_SUCCESS. Otherwise the function returns one of the WCL error codes.

The method causes the OnSynchronize method to be executed using the main thread (the thread, that was used to call the Run). The thread execution is blocked until the OnSynchronize method completes.