OSDN Git Service

Fix thread join hangs
authorYevgeny Rouban <yevgeny.y.rouban@intel.com>
Wed, 16 Apr 2014 11:26:09 +0000 (18:26 +0700)
committerYevgeny Rouban <yevgeny.y.rouban@intel.com>
Wed, 16 Apr 2014 11:26:09 +0000 (18:26 +0700)
commit63e8a68c9a2cdbbe9bfd8d200610119dd359ee59
tree144c911b7d8da5b0047a5ce3f340de73cdc8b56d
parenta3eaf66b968270b938a2795fe55e778c55f1c24b
Fix thread join hangs

Current implementation notifies only one of joining threads on thread exit.
This causes the other joining threads to hang.

This patch notifies all joining threads: just call NotifyAll() instead of Notify().

Change-Id: If75f101d3d3d876f1aa7dcf537e56a37cc347803
Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
runtime/thread.cc