fix pointer parameter transmission bug
merge threadtest.cc of simple mailbox test