public void CloneInstance(out CallbackInterface @out) { if (ThrowExceptionInClone) { throw new InvalidOperationException(); } @out = new ManagedImplementation(); }
public override void addCallback(CallbackInterface cb, UInt64 owner_id) { ICallbackInfo info = new ICallbackInfo {Callback = cb, removal_id = owner_id}; lock (mutex) { if (!enabled) return; callbacks.Add(info); Count++; } lock (id_info_mutex) { if (!id_info.ContainsKey(owner_id)) { id_info.Add(owner_id, new IDInfo {calling_rw_mutex = new object(), id = owner_id}); } } notify_one(); }
public virtual void addCallback(CallbackInterface callback, UInt64 owner_id) { throw new NotImplementedException(); }
public virtual void addCallback(CallbackInterface callback) { addCallback(callback, callback.Get()); }
public bool AreEqual(CallbackInterface rhs) { return(Add(1, 1) == rhs.Add(1, 1)); }