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

Value Description
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 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. Ovvero, il thread si trova in un punto di esecuzione in cui può bloccare l'operazione di 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 fino alla ripresa del thread. 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.

Osservazioni:

Lo stato utente di un thread è lo stato del thread 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 Sistemi operativi supportati da .NET.

Intestazione: CorDebug.idl, CorDebug.h

Biblioteca: CorGuids.lib

Versioni di .NET: Disponibile a partire da .NET Framework 1.0