RestComm / jain-sip

Disclaimer: This repository is a git-svn mirror of the project found at http://java.net/projects/jsip whose original repository is developed collaboratively by the Advanced Networking Technologies Division at the National Institute of Standards and Technology (NIST) - an agency of the United States Department of Commerce and by a community of individual and enterprise contributors. TeleStax, Inc. will perform some productization work, new features experimentation branches, etc for its TelScale jSIP product that doesn't concern the community from the main repository hence this git repository.
http://www.restcomm.com/
142 stars 151 forks source link

KeyedSemaphore is not supporting proper binarySem semantics #91

Closed jaimecasero closed 8 years ago

jaimecasero commented 8 years ago

The semaphore is intiated with permits set to "1". The provided API enter/leave critical section suggests binarySem semantics, but Semaphore is not binary. In addition, the remove operation releases semaphre permits beyond the provided leaveCriticalSection, unblocking unexpected thread.