namespace TimelapseApi; /// ///an empty object to use lock() { } with /// public class LockObj { private LockObj() { } public static LockObj Create() { return new LockObj(); } public void Lock(Action a) { if(a ==null) return; lock(this) { a(); } } }