Mercurial > pub > ImplabNet
diff Implab/Parallels/MTQueue.cs @ 24:ee04e1fa78da
fixed dispatch pool race condition
author | cin |
---|---|
date | Thu, 14 Nov 2013 01:15:07 +0400 |
parents | e3935fdf59a2 |
children | 1714fd8678ef |
line wrap: on
line diff
--- a/Implab/Parallels/MTQueue.cs Wed Nov 13 14:03:20 2013 +0400 +++ b/Implab/Parallels/MTQueue.cs Thu Nov 14 01:15:07 2013 +0400 @@ -44,7 +44,7 @@ // this is the last element, // then try to update the tail if (first != Interlocked.CompareExchange(ref m_last, null, first)) { - // this is a ace condition + // this is a race condition if (m_last == null) // the queue is empty return false;