##// END OF EJS Templates
Promise is rewritten to use interlocked operations instead of locks
Promise is rewritten to use interlocked operations instead of locks

File last commit:

r2:aa367305156b default
r19:e3935fdf59a2 promises
Show More
Safe.cs
20 lines | 424 B | text/x-csharp | CSharpLexer
cin
Added utility class for safe disposing methods....
r1 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Implab
{
public static class Safe
{
cin
small fixes
r2 public static void Dispose<T>(ref T obj) where T : class
cin
Added utility class for safe disposing methods....
r1 {
cin
small fixes
r2 var disp = obj as IDisposable;
if (disp != null)
cin
Added utility class for safe disposing methods....
r1 {
cin
small fixes
r2 disp.Dispose();
cin
Added utility class for safe disposing methods....
r1 obj = default(T);
}
}
}
}