public void EnsureCompiled() { if (_simpleTarget == null) { lock (this) { // TODO: mutex object if (_simpleTarget == null) { _simpleTarget = _code.CreateDelegate <CallTargetWithContext0>(_compilerContext); } } } }