Skip to content

Commit

Permalink
Added a note about a race condition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintGimp committed May 28, 2011
1 parent 5379b85 commit 89bb4cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GenesisEngine/Domain/QuadNode.cs
Expand Up @@ -241,6 +241,11 @@ void CreateBackgroundMergeTask()

void DisposeSubNodes()
{
// TODO: we have a race condition here where the parent node might
// decide to dispose this node at the same time that this node is
// being split. We get an exception here because the _subNodes
// collection is modified while we're iterating it.

foreach (var node in _subnodes)
{
((IDisposable)node).Dispose();
Expand Down

0 comments on commit 89bb4cf

Please sign in to comment.