Condividi tramite


Enumerazione CorDebugUserState

Indica lo stato utente di un thread.

Sintassi

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

Valore Descrizione
USER_STOP_REQUESTED È stata richiesta una 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 è stato avviato.
USER_STOPPED Il thread è stato terminato.
USER_WAIT_SLEEP_JOIN Il thread è in attesa del completamento 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, il thread si trova in un punto di esecuzione in cui può bloccare Garbage Collection.

Gli eventi di debug possono essere inviati da punti non sicuri, ma la sospensione di un thread in un punto non sicuro causerà molto probabilmente un deadlock finché il thread non viene ripreso. I punti sicuri e non sicuri sono determinati dall'implementazione JIT (Just-In-Time) e Garbage Collection.
USER_THREADPOOL Il thread proviene dal pool di thread.

Commenti

Lo stato utente di un thread è lo stato che il thread ha quando il debugger lo esamina. Un thread può avere una combinazione di stati utente.

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

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorDebug.idl, CorDebug.h

Libreria: CorGuids.lib

Versioni di .NET Framework: Disponibile da 1.0

Vedi anche