Example #1
0
 public override void NotifyPost_async(AMD_Listener_NotifyPost cb, Post newPost, Current current)
 {
     lock (this)
     {
         this._jobQueue.Add(cb, newPost, this._output);
     }
 }
Example #2
0
 public override void NotifyPost_async(AMD_Listener_NotifyPost cb, Post newPost, Current current)
 {
     lock (this)
     {
         this._jobQueue.Add(cb, newPost, this._output);
     }
 }
Example #3
0
 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"));
         }
     }
 }
Example #4
0
 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"));
         }
     }
 }
Example #5
0
 public ListenerJob(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output)
 {
     this._amdListenerNotifyPost = amdListenerNotifyPost;
     this._post = post;
     this._output = output;
 }
Example #6
0
 public ListenerJob(AMD_Listener_NotifyPost amdListenerNotifyPost, Post post, TextBox output)
 {
     this._amdListenerNotifyPost = amdListenerNotifyPost;
     this._post   = post;
     this._output = output;
 }