Add synchronize to thread notify
Merge pull request #1012 from emmanuel-keller/1.5

Add synchronize to thread notify