Template SyncFunction

This template wraps the function's body inside a 'synchronized' statement, so it can be called from multiple threads.

template SyncFunction(alias Func, string identifier = __traits(identifier, Func)) ;

Parameters

NameDescription
Func alias to the function symbol
identifier name of the function