baohua - 2014-10-08

Hi Paul and Ben,

I've identified a place in EventBucket that causes the crash. There is a race condition between methods Clear() and HasEvent() in EventBucket .

For example,
delete(it->first);
in Clear() is executed just before
entry.first->GetEventName();
in HasEvent() is executed.

I've fixed this problem by using itk::SimpleFastMutexLock in EventBucket.

Thank you!

Baohua