crashanalysercmd/Libraries/Engine/CrashDebuggerLib/Structures/MessageQueue/MsgQueueWaitInfo.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 using System;
       
    19 using System.Collections.Generic;
       
    20 using System.Text;
       
    21 using CrashDebuggerLib.Structures.KernelObjects;
       
    22 using CrashDebuggerLib.Structures.Thread;
       
    23 using CrashDebuggerLib.Structures.Common;
       
    24 
       
    25 namespace CrashDebuggerLib.Structures.MessageQueue
       
    26 {
       
    27     public class MsgQueueWaitInfo
       
    28     {
       
    29         #region Enumerations
       
    30         public enum TType
       
    31         {
       
    32             EWaitTypeSpace = 0,
       
    33             EWaitTypeData
       
    34         }
       
    35         #endregion
       
    36 
       
    37         #region Constructors
       
    38         public MsgQueueWaitInfo( TType aType, CrashDebuggerInfo aCrashDebugger )
       
    39         {
       
    40             iType = aType;
       
    41             iCrashDebugger = aCrashDebugger;
       
    42         }
       
    43         #endregion
       
    44 
       
    45         #region API
       
    46         #endregion
       
    47 
       
    48         #region Properties
       
    49         public uint WaitingThreadAddress
       
    50         {
       
    51             get { return iWaitingThreadAddress; }
       
    52             set { iWaitingThreadAddress = value; }
       
    53         }
       
    54 
       
    55         public DThread WaitingThread
       
    56         {
       
    57             get { return iCrashDebugger.ThreadByAddress( WaitingThreadAddress ); }
       
    58         }
       
    59 
       
    60         public RequestStatus RequestStatus
       
    61         {
       
    62             get { return iRequestStatus; }
       
    63             set { iRequestStatus = value; }
       
    64         }
       
    65         #endregion
       
    66 
       
    67         #region Internal methods
       
    68         #endregion
       
    69 
       
    70         #region Internal constants
       
    71         #endregion
       
    72 
       
    73         #region From System.Object
       
    74         public override string ToString()
       
    75         {
       
    76             return base.ToString();
       
    77         }
       
    78         #endregion
       
    79 
       
    80         #region Data members
       
    81         private readonly TType iType;
       
    82         private readonly CrashDebuggerInfo iCrashDebugger;
       
    83         private uint iWaitingThreadAddress = 0;
       
    84         private RequestStatus iRequestStatus = new RequestStatus();
       
    85         #endregion
       
    86     }
       
    87 }