Mono.Debugger.Process.GetThreads C# (CSharp) Méthode

GetThreads() public méthode

public GetThreads ( ) : Thread[]
Résultat Thread[]
        public Thread[] GetThreads()
        {
            lock (thread_hash.SyncRoot) {
                int count = thread_hash.Count;
                Thread[] threads = new Thread [count];
                ThreadServant[] servants = new ThreadServant [count];
                thread_hash.Values.CopyTo (servants, 0);
                for (int i = 0; i < count; i++)
                    threads [i] = servants [i].Client;
                return threads;
            }
        }

Usage Example

Exemple #1
0
 MD.Thread GetThread(long procId, long threadId)
 {
     MD.Process proc = GetProcess(procId);
     if (proc != null)
     {
         foreach (MD.Thread t in proc.GetThreads())
         {
             if (t.ID == (int)threadId)
             {
                 return(t);
             }
         }
     }
     return(null);
 }
All Usage Examples Of Mono.Debugger.Process::GetThreads