Mercurial > hg > ucis.core
comparison Util/PrebufferingStream.cs @ 37:2e3f57f326b3
Fixed some compiler warnings
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 21 Apr 2013 19:41:19 +0200 |
parents | 9525fb2d14ec |
children |
comparison
equal
deleted
inserted
replaced
36:c4a5dbe62513 | 37:2e3f57f326b3 |
---|---|
14 public AsyncResult(AsyncCallback callback, Object state) : base(callback, state) { } | 14 public AsyncResult(AsyncCallback callback, Object state) : base(callback, state) { } |
15 public void SetCompleted(Boolean synchronously, int count, Exception error) { | 15 public void SetCompleted(Boolean synchronously, int count, Exception error) { |
16 this.Count = count; | 16 this.Count = count; |
17 base.SetCompleted(synchronously, error); | 17 base.SetCompleted(synchronously, error); |
18 } | 18 } |
19 public void SetCompleted(Boolean synchronously, Exception error) { | 19 public new void SetCompleted(Boolean synchronously, Exception error) { |
20 base.SetCompleted(synchronously, error); | 20 base.SetCompleted(synchronously, error); |
21 } | 21 } |
22 public int WaitForCompletion() { | 22 public int WaitForCompletion() { |
23 WaitHandle wh = null; | 23 WaitHandle wh = null; |
24 lock (this) if (!IsCompleted) wh = AsyncWaitHandle; | 24 lock (this) if (!IsCompleted) wh = AsyncWaitHandle; |