Thread locks working, CV's not implemented yet