aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie2009-09-03 21:04:06 +0100
committerMelanie2009-09-03 21:04:06 +0100
commit5c2bf97bf2fe5dfe69b98bf50df2d994ac4c23bf (patch)
treee48751a92b2ac8bad613c0a1355a9206fe596fd0 /OpenSim/Framework
parentRemove the distinction between password and login key in the authentication (diff)
parentMerge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-5c2bf97bf2fe5dfe69b98bf50df2d994ac4c23bf.zip
opensim-SC-5c2bf97bf2fe5dfe69b98bf50df2d994ac4c23bf.tar.gz
opensim-SC-5c2bf97bf2fe5dfe69b98bf50df2d994ac4c23bf.tar.bz2
opensim-SC-5c2bf97bf2fe5dfe69b98bf50df2d994ac4c23bf.tar.xz
Merge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index bbb0ae2..58344f3 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1169,5 +1169,27 @@ namespace OpenSim.Framework
1169 1169
1170 return found.ToArray(); 1170 return found.ToArray();
1171 } 1171 }
1172
1173 #region FireAndForget Threading Pattern
1174
1175 public static void FireAndForget(System.Threading.WaitCallback callback)
1176 {
1177 callback.BeginInvoke(null, EndFireAndForget, callback);
1178 }
1179
1180 public static void FireAndForget(System.Threading.WaitCallback callback, object obj)
1181 {
1182 callback.BeginInvoke(obj, EndFireAndForget, callback);
1183 }
1184
1185 private static void EndFireAndForget(IAsyncResult ar)
1186 {
1187 System.Threading.WaitCallback callback = (System.Threading.WaitCallback)ar.AsyncState;
1188
1189 callback.EndInvoke(ar);
1190 ar.AsyncWaitHandle.Close();
1191 }
1192
1193 #endregion FireAndForget Threading Pattern
1172 } 1194 }
1173} 1195}