complete semaphore