public static object _set_sentinel(CodeContext context) { if (_sentinelLocks == null) { _sentinelLocks = new List <@lock>(); } var obj = new @lock(); _sentinelLocks.Add(obj); return(obj); }
public System.IAsyncResult Beginlock(@lock @lock, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("lock", new object[] { @lock}, callback, asyncState); }