Exemple #1
0
 public IEnumerable <uint> EnumerateOSThreadIds()
 {
     foreach (IElfPRStatus status in _core.EnumeratePRStatus())
     {
         yield return(status.ThreadId);
     }
 }
Exemple #2
0
        private void InitThreads()
        {
            if (_threads != null)
            {
                return;
            }

            _threads = new Dictionary <uint, ElfPRStatus>();
            foreach (ElfPRStatus status in _core.EnumeratePRStatus())
            {
                _threads.Add(status.Pid, status);
            }
        }