Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255492

Semaphore should be an interface or abstract

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Generic

      A DESCRIPTION OF THE PROBLEM :
      Currently there is an asymetry between Lock and Semaphore which makes it harder to create classes which do obey "Semaphore" contract, needs to be assignment compatible but needs to do it in an another way (ie prevent something from happening and etc.)

      Adding a Semaphore (ie. "inteface ISemaphore") or at least a "clean, pure virtual" abstract class would make my life easier.

      Urgency: low.


            dl Doug Lea
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: