public static void Initialize()
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
 }
 public static void Initialize(int threadCount)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool(threadCount);
     }
 }
示例#3
0
 public static void Initialize(int threadCount)
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool(threadCount);
     }
 }
示例#4
0
 public static void Initialize()
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool();
     }
 }
示例#5
0
 public static void Terminate()
 {
     if (DSPThreadPool._threadPool == null)
     return;
       DSPThreadPool._threadPool.Dispose();
       DSPThreadPool._threadPool = (SharpThreadPool) null;
 }
 public static void Terminate()
 {
     if (_threadPool != null)
     {
         _threadPool.Dispose();
         _threadPool = null;
     }
 }
 public static void QueueUserWorkItem(WaitCallback callback, object parameter)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
     _threadPool.QueueUserWorkItem(callback, parameter);
 }
 public static void QueueUserWorkItem(WaitCallback callback)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
     _threadPool.QueueUserWorkItem(callback);
 }
示例#9
0
 public static void Terminate()
 {
     if (DSPThreadPool._threadPool != null)
     {
         DSPThreadPool._threadPool.Dispose();
         DSPThreadPool._threadPool = null;
     }
 }
示例#10
0
 public static void QueueUserWorkItem(WaitCallback callback, object parameter)
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool();
     }
     DSPThreadPool._threadPool.QueueUserWorkItem(callback, parameter);
 }
示例#11
0
 public static void Terminate()
 {
     if (_threadPool != null)
     {
         _threadPool.Dispose();
         _threadPool = null;
     }
 }
示例#12
0
 public static void QueueUserWorkItem(WaitCallback callback)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
     _threadPool.QueueUserWorkItem(callback);
 }
示例#13
0
 public static void Initialize(int threadCount)
 {
     if (DSPThreadPool._threadPool != null)
     return;
       DSPThreadPool._threadPool = new SharpThreadPool(threadCount);
 }
示例#14
0
 public static void Initialize()
 {
     if (DSPThreadPool._threadPool != null)
     return;
       DSPThreadPool._threadPool = new SharpThreadPool();
 }