withLock


Description:

public void withLock (WithLockFunc func)

Executes a function while holding the lock.

Parameters:

func

function to execute.