support tid() built-in function

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>