public static void Initialize()
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
 }
 public static void Initialize(int threadCount)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool(threadCount);
     }
 }
Esempio n. 3
0
 public static void Initialize(int threadCount)
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool(threadCount);
     }
 }
Esempio n. 4
0
 public static void Initialize()
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool();
     }
 }
Esempio n. 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);
 }
Esempio n. 9
0
 public static void Terminate()
 {
     if (DSPThreadPool._threadPool != null)
     {
         DSPThreadPool._threadPool.Dispose();
         DSPThreadPool._threadPool = null;
     }
 }
Esempio n. 10
0
 public static void QueueUserWorkItem(WaitCallback callback, object parameter)
 {
     if (DSPThreadPool._threadPool == null)
     {
         DSPThreadPool._threadPool = new SharpThreadPool();
     }
     DSPThreadPool._threadPool.QueueUserWorkItem(callback, parameter);
 }
Esempio n. 11
0
 public static void Terminate()
 {
     if (_threadPool != null)
     {
         _threadPool.Dispose();
         _threadPool = null;
     }
 }
Esempio n. 12
0
 public static void QueueUserWorkItem(WaitCallback callback)
 {
     if (_threadPool == null)
     {
         _threadPool = new SharpThreadPool();
     }
     _threadPool.QueueUserWorkItem(callback);
 }
Esempio n. 13
0
 public static void Initialize(int threadCount)
 {
     if (DSPThreadPool._threadPool != null)
     return;
       DSPThreadPool._threadPool = new SharpThreadPool(threadCount);
 }
Esempio n. 14
0
 public static void Initialize()
 {
     if (DSPThreadPool._threadPool != null)
     return;
       DSPThreadPool._threadPool = new SharpThreadPool();
 }