-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
x86
-
linux
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.
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.
- links to
-
Review(master) openjdk/jdk/25880