ConservativeGC.runLocked

auto runLocked(alias func, Args...)(auto ref Args args)

Run a function inside a lock/unlock set.

Parameters

funcThe function to run.
argsThe function arguments.
auto runLocked(alias func, alias time, alias count, Args...)(auto ref Args args)

Run a function in an lock/unlock set that keeps track of how much time was spend inside this function (in ticks) and how many times this fuction was called.

Parameters

funcThe function to run.
timeThe variable keeping track of the time (in ticks).
countThe variable keeping track of how many times this fuction was called.
argsThe function arguments.