completed UpdateBuffer; destroy semphore