TwclMessageBroadcaster.SetSyncMethod(TwclMessageSynchronizationKind) Method

Changes the current inter-threading synchronization method.

Namespace: wclMessaging
public
 class function SetSyncMethod(
 const Kind: TwclMessageSynchronizationKind): Integer;

Parameters

Kind
Type: TwclMessageSynchronizationKind

The new synchronization method.

Return Value

Type: Integer

If the function succeed the returns value is wclErrors.WCL_E_SUCCESS. Otherwise the function returns one of the WCL error codes.

An application must call this method to change the current inter-threading synchronization method before any other calls to WCL.