Partager via


CorDebugUserState, énumération

Indique l’état utilisateur d’un thread.

Syntaxe

typedef enum CorDebugUserState {
    USER_STOP_REQUESTED     =  0x01,
    USER_SUSPEND_REQUESTED  =  0x02,
    USER_BACKGROUND         =  0x04,
    USER_UNSTARTED          =  0x08,
    USER_STOPPED            =  0x10,
    USER_WAIT_SLEEP_JOIN    =  0x20,
    USER_SUSPENDED          =  0x40,
    USER_UNSAFE_POINT       =  0x80,
    USER_THREADPOOL         = 0x100
} CorDebugUserState;

Members

Valeur Descriptif
USER_STOP_REQUESTED Une terminaison du thread a été demandée.
USER_SUSPEND_REQUESTED Une suspension du thread a été demandée.
USER_BACKGROUND Le thread s’exécute en arrière-plan.
USER_UNSTARTED Le thread n’a pas commencé à s’exécuter.
USER_STOPPED Le thread a été arrêté.
USER_WAIT_SLEEP_JOIN Le thread attend qu’un autre thread termine une tâche.
USER_SUSPENDED Le thread a été suspendu.
USER_UNSAFE_POINT Le thread est à un point non sécurisé. Autrement dit, le thread se trouve à un point dans l’exécution où il peut bloquer le garbage collection.

Les événements de débogage peuvent être distribués à partir de points non sécurisés, mais la suspension d’un thread à un point non sécurisé entraîne très probablement un blocage jusqu’à ce que le thread soit repris. Les points sûrs et non sécurisés sont déterminés par l’implémentation juste-à-temps (JIT) et garbage collection.
USER_THREADPOOL Le thread provient du pool de threads.

Remarques

L’état utilisateur d’un thread est l’état que le thread a quand le débogueur l’examine. Un thread peut avoir une combinaison d’états utilisateur.

Utilisez la méthode ICorDebugThread ::GetUserState pour récupérer l’état utilisateur d’un thread.

Spécifications

Plates-formes: Consultez les systèmes d’exploitation pris en charge par .NET.

En-tête: CorDebug.idl, CorDebug.h

Bibliothèque: CorGuids.lib

Versions de .NET : Disponible depuis .NET Framework 1.0