Thrift-1606:Race condition in BoostThreadFactory.cpp
authorJake Farrell <jfarrell@apache.org>
Thu, 17 May 2012 04:32:10 +0000 (04:32 +0000)
committerJake Farrell <jfarrell@apache.org>
Thu, 17 May 2012 04:32:10 +0000 (04:32 +0000)
commit94bb7f26f6d9b5bf1106b1aeb4b983e453f50047
tree4c2b5311254f7ea4fc0bb7daaa2259f811045762
parente8c259a08a229b082db75eec8b7ebaceae4c557d
Thrift-1606:Race condition in BoostThreadFactory.cpp
Client: cpp
Patch: alexandre parenteau

Race condition between the line that set state_ to "starting", and the line that checked to make sure that it was "starting". That ended meaning that sometimes calling "start()" would not result in the thread's runnable being called.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339477 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/thrift/concurrency/BoostThreadFactory.cpp