OcurrentThread()
função é usada para obter o objeto thread do thread atual.
OcurrentThread()
função retorna o objeto thread do thread atual.
Thread
Objeto
CurrentThread ((()
function test() {
Log("Id of the current thread:", threading.currentThread().id())
}
function main() {
var t1 = threading.Thread(test)
t1.join()
}
Apanha oThread
objeto do fio de corrente e saída dothreadId
do fio corrente.
Suporta sistema de backtesting e ambiente de negociação ao vivo.
{@fun/Threads/threading/Thread Thread}, {@fun/Threads/threading/mainThread mainThread}, {@fun/Threads/threading/Thread Thread}, {@fun/Threads/threading/Lock Lock}, {@fun/Threads/threading/threading/Condition Condition}, {@fun/Threads/threading/event Event}, {@fun/Threads/threading/threading/Dict Dict}, {@fun/Threads/threading/threading/pending pending}, {@fun/Threads/threading/eventLoop eventLoop}
principalThread Bloqueio