diff options
author | UbitUmarov | 2019-02-15 01:38:49 +0000 |
---|---|---|
committer | UbitUmarov | 2019-02-15 01:38:49 +0000 |
commit | b242232c7b1cfd682fa92c8616c0e299539bd4b0 (patch) | |
tree | 5d974568e43352dda5754f2bcc9d0950bb554446 /OpenSim/Framework/Util.cs | |
parent | don't break permitions on god object return or delete (diff) | |
download | opensim-SC-b242232c7b1cfd682fa92c8616c0e299539bd4b0.zip opensim-SC-b242232c7b1cfd682fa92c8616c0e299539bd4b0.tar.gz opensim-SC-b242232c7b1cfd682fa92c8616c0e299539bd4b0.tar.bz2 opensim-SC-b242232c7b1cfd682fa92c8616c0e299539bd4b0.tar.xz |
minor cleanup
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 52f9aea..f66a987 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -2437,34 +2437,6 @@ namespace OpenSim.Framework | |||
2437 | 2437 | ||
2438 | #region FireAndForget Threading Pattern | 2438 | #region FireAndForget Threading Pattern |
2439 | 2439 | ||
2440 | /// <summary> | ||
2441 | /// Created to work around a limitation in Mono with nested delegates | ||
2442 | /// </summary> | ||
2443 | private sealed class FireAndForgetWrapper | ||
2444 | { | ||
2445 | private static object syncRoot = new Object(); | ||
2446 | |||
2447 | public void FireAndForget(System.Threading.WaitCallback callback) | ||
2448 | { | ||
2449 | callback.BeginInvoke(null, EndFireAndForget, callback); | ||
2450 | } | ||
2451 | |||
2452 | public void FireAndForget(System.Threading.WaitCallback callback, object obj) | ||
2453 | { | ||
2454 | callback.BeginInvoke(obj, EndFireAndForget, callback); | ||
2455 | } | ||
2456 | |||
2457 | private static void EndFireAndForget(IAsyncResult ar) | ||
2458 | { | ||
2459 | System.Threading.WaitCallback callback = (System.Threading.WaitCallback)ar.AsyncState; | ||
2460 | |||
2461 | try { callback.EndInvoke(ar); } | ||
2462 | catch (Exception ex) { m_log.Error("[UTIL]: Asynchronous method threw an exception: " + ex.Message, ex); } | ||
2463 | |||
2464 | ar.AsyncWaitHandle.Close(); | ||
2465 | } | ||
2466 | } | ||
2467 | |||
2468 | public static void InitThreadPool(int minThreads, int maxThreads) | 2440 | public static void InitThreadPool(int minThreads, int maxThreads) |
2469 | { | 2441 | { |
2470 | if (maxThreads < 2) | 2442 | if (maxThreads < 2) |