Condividi tramite


CorDebugUserState

Aggiornamento: novembre 2007

Indica la stato utente di un thread.

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,
} CorDebugUserState;

Membri

Valore

Descrizione

USER_STOP_REQUESTED

È stata richiesta la terminazione del thread.

USER_SUSPEND_REQUESTED

È stata richiesta una sospensione del thread.

USER_BACKGROUND

Il thread è in esecuzione in background.

USER_UNSTARTED

Il thread non ha avviato l'esecuzione.

USER_STOPPED

Il thread è stato terminato.

USER_WAIT_SLEEP_JOIN

Il thread è in attesa del completamento di un'attività da parte di un altro thread.

USER_SUSPENDED

Il thread è stato sospeso.

USER_UNSAFE_POINT

Il thread si trova in un punto non sicuro, vale a dire che si trova in un punto dell'esecuzione in cui potrebbe bloccare il Garbage Collection.

Sebbene sia possibile inviare eventi di debug da punti non sicuri, la sospensione di un thread in un punto non sicuro causerà quasi sicuramente un deadlock fino alla ripresa del thread. I punti sicuri e non sicuri sono determinati dall'implementazione di JIT (Just-in-Time) e di Garbage Collection.

Note

La stato utente di un thread è lo stato in cui si trova il thread quando viene esaminato dal debugger. Un thread può disporre di una combinazione di stati utente.

Utilizzare il metodo ICorDebugThread::GetUserState per recuperare lo stato utente di un thread.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorDebug.idl

Libreria: CorGuids.lib

Versioni di .NET Framework: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Vedere anche

Riferimenti

ICorDebugThread

Altre risorse

Enumerazioni di debug