문법
setthreadidentity(thread?: thread, identity: integer)별칭
set_thread_identitysetidentitysetthreadcapssetthreadcontextset_thread_context인수
| 이름 | 타입 | 설명 |
|---|---|---|
thread? | thread | 내부를 검사하거나 실행할 스레드입니다. |
identity | integer | 적용할 스레드 ID 수준입니다. |
설명
스레드 또는 현재 스레드의 ID 수준을 설정합니다.
2개 파라미터로 호출합니다: thread, identity. 인수 표는 필수 값과 동작을 조정하는 값을 설명합니다.
데이터를 반환하지 않습니다. 호출을 동작으로 보고 필요하면 호출 위치에서 오류를 처리하세요.
예제
자리 표시자 값을 사용하는 예제 호출입니다.
setthreadidentity(coroutine.running(), 1)