35// Toggle race detection until a call to the same function that toggles it back off.
36// If multiple threads activate race detection at the same time, it will be turned off when all thread toggle it back to off.
37// The grace period is how much time to wait until race detection is really turned off. Can be used when toggling is expected to happen too often or too fast.