[todo] add condition variables

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>