public override void NotifyPost_async(AMD_Listener_NotifyPost cb, Post newPost, Current current) { lock (this) { this._jobQueue.Add(cb, newPost, this._output); } }
public override void NotifyPost_async(AMD_Listener_NotifyPost cb, Post newPost, Current current) { lock (this) { this._jobQueue.Add(cb, newPost, this._output); } }
public void Add(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output) { lock(this) { if(!this._done) { if (this._jobs.Count == 0) Monitor.Pulse(this); this._jobs.Add(new ListenerJob(amdListenerNotifyPost, post, output)); } else { amdListenerNotifyPost.ice_exception(new IChatException("Queue is destroyed")); } } }
public void Add(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output) { lock (this) { if (!this._done) { if (this._jobs.Count == 0) { Monitor.Pulse(this); } this._jobs.Add(new ListenerJob(amdListenerNotifyPost, post, output)); } else { amdListenerNotifyPost.ice_exception(new IChatException("Queue is destroyed")); } } }
public ListenerJob(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output) { this._amdListenerNotifyPost = amdListenerNotifyPost; this._post = post; this._output = output; }
public ListenerJob(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output) { this._amdListenerNotifyPost = amdListenerNotifyPost; this._post = post; this._output = output; }