remove the glrender thread, add mutex and cond_cv in dispaly