[concurrency-interest] Spin Loop Hint support: Draft JEP proposal

thurstonn thurston at nomagicsoftware.com
Tue Dec 1 15:50:38 EST 2015


+1 for the API note

OK, I guess it is inherently fraught, but I still think it would be useful,
e.g. when clarifying when  (how often) to invoke it. i.e. someone might
(reasonably?) conclude that you should do:


Runtime.onSpinLoop()
while (spin-until-condition) {}


instead of:

while (spin-until-condition) 
{
    Runtime.onSpinLoop()
}





--
View this message in context: http://jsr166-concurrency.10961.n7.nabble.com/Re-Spin-Loop-Hint-support-Draft-JEP-proposal-tp12784p12914.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.


More information about the Concurrency-interest mailing list