CyclicBarrier reset() should return the number of awaiters

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 5.0
    • Component/s: core-libs

      A DESCRIPTION OF THE REQUEST :
      Return value is the number of awaiters to get BrokenBarrierException; in other words result > 0 means the reset() had an effect on some other threads.

      JUSTIFICATION :
      There is no way atomically to know whether the reset affected any other threads.


      ---------- BEGIN SOURCE ----------
      I have some code that needs this feature, but it is too complex to include here.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      The only thing I can see is to copy the source code and modify it to include the feature I want, which is not an acceptable workaround.

            Assignee:
            Doug Lea
            Reporter:
            Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: