cpp/thread/condition variable/native handle