Luồng

setthreadidentity

Đặt mức nhận dạng cho một luồng hoặc luồng hiện tại.

Cú pháp

setthreadidentity(thread?: thread, identity: integer)
Alias set_thread_identitysetidentitysetthreadcapssetthreadcontextset_thread_context

Đối số

TênKiểuMô tả
thread?threadThread để kiểm tra hoặc chạy bên trong.
identityintegerCấp độ nhận dạng chủ đề để áp dụng.

Mô tả

Đặt mức nhận dạng cho một luồng hoặc luồng hiện tại.

Goi voi 2 parameter: thread, identity. Bang arguments giai thich gia tri nao bat buoc va gia tri nao chi tinh chinh hanh vi.

Khong tra ve du lieu. Xem call nhu mot action va xu ly loi quanh vi tri goi khi can.

Ví dụ

Vi du goi ham voi gia tri mau.

setthreadidentity(coroutine.running(), 1)