Renvoie l'état actuel d'un thread.
SI ThreadEtat("Thread1") = threadSuspendu ALORS
ThreadReprend("Thread1")
FIN
Syntaxe
<Résultat> = ThreadEtat(<Nom du thread>)
<Résultat> : Constante
Etat actuel du thread : | |
threadArrêtDemandé | Une demande d'arrêt a été effectuée pour ce thread. |
threadEncours | Le thread est en cours d'exécution. |
threadInexistant | Le thread n'a pas été créé ou a été détruit. |
threadSuspendu | Le thread est suspendu. |
<Nom du thread> : Chaîne de caractères
Nom du thread dont on veut connaître l'état. Ce nom est donné lors de l'exécution du thread (fonction ThreadExécute).