performLocked

private

ReturnType!PROC
performLocked
(
alias PROC
MUTEX
)
(
MUTEX mutex
)

Examples

int protected_var = 0;
auto mtx = new TaskMutex;
mtx.performLocked!({
	protected_var++;
});

Meta