添加条件变量、互斥量和内存屏障

Signed-off-by: hurley25 <liuhuan1992@gmail.com>