internal DeadLockItemNode(ThreadStackNodeManager manager, TreeNode deadlockNode, WaitDeadLockItem deadlockItem)
        {
            if (deadlockNode == null)
                throw new ArgumentNullException("deadlockNode");

            if (manager == null)
                throw new ArgumentNullException("manager");

            if (deadlockItem == null)
                throw new ArgumentNullException("deadlockItem");

            r_manager = manager;
            r_deadlockNode = deadlockNode;

            String text = GetDeadLockItemText(deadlockItem);
            r_deadlockItemNode = r_deadlockNode.Nodes.Add(text);
            r_deadlockItemNode.ImageKey = "arrow_branch.png";
            r_deadlockItemNode.SelectedImageKey = r_deadlockItemNode.ImageKey;
            r_deadlockItemNode.Tag = this;
        }
Esempio n. 2
0
 private String GetDeadLockItemText(WaitDeadLockItem item)
 {
     return("Thread (" + r_manager.GetValue(item.WaitingThread.OsThreadId) + ") waits on " + r_manager.GetValue((ulong)item.CurrentObject.Address) + " owned by " + r_manager.GetValue(item.OwningThread.OsThreadId));
 }
Esempio n. 3
0
        public void Refresh(WaitDeadLockItem deadlockItem)
        {
            String text = GetDeadLockItemText(deadlockItem);

            r_deadlockItemNode.Text = text;
        }
Esempio n. 4
0
        internal DeadLockItemNode(ThreadStackNodeManager manager, TreeNode deadlockNode, WaitDeadLockItem deadlockItem)
        {
            if (deadlockNode == null)
            {
                throw new ArgumentNullException("deadlockNode");
            }

            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            if (deadlockItem == null)
            {
                throw new ArgumentNullException("deadlockItem");
            }

            r_manager      = manager;
            r_deadlockNode = deadlockNode;

            String text = GetDeadLockItemText(deadlockItem);

            r_deadlockItemNode                  = r_deadlockNode.Nodes.Add(text);
            r_deadlockItemNode.ImageKey         = "arrow_branch.png";
            r_deadlockItemNode.SelectedImageKey = r_deadlockItemNode.ImageKey;
            r_deadlockItemNode.Tag              = this;
        }
 private String GetDeadLockItemText(WaitDeadLockItem item)
 {
     return "Thread (" + r_manager.GetValue(item.WaitingThread.OsThreadId) + ") waits on " + r_manager.GetValue((ulong)item.CurrentObject.Address) + " owned by " + r_manager.GetValue(item.OwningThread.OsThreadId);
 }
 public void Refresh(WaitDeadLockItem deadlockItem)
 {
     String text = GetDeadLockItemText(deadlockItem);
     r_deadlockItemNode.Text = text;
 }