ParseData::record_block should not need locking. We should rely on the return value...
authorXiaozhu Meng <xmeng@cs.wisc.edu>
Fri, 29 Jun 2018 15:53:03 +0000 (10:53 -0500)
committerXiaozhu Meng <xmeng@cs.wisc.edu>
Fri, 29 Jun 2018 15:53:03 +0000 (10:53 -0500)
commit55d04addfc93bf505915f734517ebc6e8adc2475
tree1bf343531e05abdc91ca146c0dd5675a772b17d1
parent86fbb589e2dc5163364738c552bbb2bb568a3b1a
ParseData::record_block should not need locking. We should rely on the return value of concurrent_hash_map::insert to determine which thread succeeds in inserting and which threads failed. The failed threads should just use the already inserted block and give up insertion
parseAPI/src/ParseData.C
parseAPI/src/ParseData.h
parseAPI/src/Parser.C
parseAPI/src/Parser.h