projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b4cb82
)
Fixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs).
author
Paolo Molaro
<lupus@oddwiz.org>
Thu, 2 Aug 2012 16:10:23 +0000
(18:10 +0200)
committer
Paolo Molaro
<lupus@oddwiz.org>
Thu, 2 Aug 2012 16:10:23 +0000
(18:10 +0200)
mcs/class/System/System.Net.Sockets/Socket.cs
patch
|
blob
|
history
diff --git
a/mcs/class/System/System.Net.Sockets/Socket.cs
b/mcs/class/System/System.Net.Sockets/Socket.cs
index 291f9ab852615d9ed854fc6d928dc523270e6a59..763bc3462f422e907943bb3439a3aa1fb0478b2c 100644
(file)
--- a/
mcs/class/System/System.Net.Sockets/Socket.cs
+++ b/
mcs/class/System/System.Net.Sockets/Socket.cs
@@
-1617,10
+1617,9
@@
namespace System.Net.Sockets
res.Size = e.Count;
res.EndPoint = e.RemoteEndPoint;
res.SockFlags = e.SocketFlags;
- Worker worker = new Worker (e);
int count;
lock (readQ) {
- readQ.Enqueue (
w
orker);
+ readQ.Enqueue (
e.W
orker);
count = readQ.Count;
}
if (count == 1)
@@
-1938,10
+1937,9
@@
namespace System.Net.Sockets
res.Size = e.Count;
res.SockFlags = e.SocketFlags;
res.EndPoint = e.RemoteEndPoint;
- Worker worker = new Worker (e);
int count;
lock (writeQ) {
- writeQ.Enqueue (
w
orker);
+ writeQ.Enqueue (
e.W
orker);
count = writeQ.Count;
}
if (count == 1)