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