Itseez/opencv — pull request #268 by 5kg (2012-12-27 10:07:54+00:00)
Title: Cascade classifier randomly crashes on certain image when TBB enabled.

Hi,
I encounter a problem while using Cascade classifier for face detection when TBB is enabled.
The simple program randomly crashes on certain image.

After investigation, I think it it caused by a race condition problem when inserting items into `rejectLevels` and `levelWeights` vectors.

Plz review my pull request and fix this bug.

Related issue: http://code.opencv.org/issues/2628