You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditionals in atomic sections would be very useful in the MCS queue (see #133) where we need a compareAndSet operation over Starling variables. I want to write something like the following:
method unlock (Node qnode) {
...
< if (qnode == tail) {
tail = null;
test = true;
} else {
test = false
} > ;
...
}
The only way to do this at the moment is (I think) to piggyback on GRASShopper's if statement, which is dumb:
(This is pulled out from the broader issue #105)
Conditionals in atomic sections would be very useful in the MCS queue (see #133) where we need a compareAndSet operation over Starling variables. I want to write something like the following:
The only way to do this at the moment is (I think) to piggyback on GRASShopper's if statement, which is dumb:
I think @MattWindsor91 also ran into this when he was trying to encode the Treiber stack.
The text was updated successfully, but these errors were encountered: