Cú pháp
setthreadidentity(thread?: thread, identity: integer)Alias
set_thread_identitysetidentitysetthreadcapssetthreadcontextset_thread_contextĐối số
| Tên | Kiểu | Mô tả |
|---|---|---|
thread? | thread | Thread để kiểm tra hoặc chạy bên trong. |
identity | integer | Cấ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)