using c++ wrap thread and mutex condition var etc. based on linux.