thread local

Signed-off-by: yangsong <yangsong@vuclip.com>