add mutex thread cond, need to complete

Signed-off-by: Ketor <d.ketor@gmail.com>