|
RE: Is enq(Node node) safe?: msg#00015java.jsr.166-concurrency
> Hu Jinsong wrote: > > Sorry, I do not notice that. > Then how about compareAndSetTail part of this enq method, then my test > scenario does apply, doesn't it? > No that is the part that Doug referred to where users of the code compensate for the fact that the next field is set potentially much later from when the tail is swapped in - so a null next field does not imply it is the tail. See the docs on the Node.next field. David Holmes
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Is enq(Node node) safe?, Hu, Jinsong |
|---|---|
| Next by Date: | Reloading thread variables, Jean Morissette |
| Previous by Thread: | RE: Is enq(Node node) safe?, Hu, Jinsong |
| Next by Thread: | Reloading thread variables, Jean Morissette |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |