removed compare function for semaphore_elem