add test
cpp and complatible
bind thd thread to work thread