forked from boostorg/unordered
disabled insertion synchronization
This commit is contained in:
@ -1588,7 +1588,7 @@ private:
|
|||||||
startover:
|
startover:
|
||||||
boost::uint32_t counter=0;
|
boost::uint32_t counter=0;
|
||||||
{
|
{
|
||||||
auto lck=access(group_exclusive{},pos0);
|
//auto lck=access(group_exclusive{},pos0);
|
||||||
counter=insert_counter(pos0);
|
counter=insert_counter(pos0);
|
||||||
}
|
}
|
||||||
if(unprotected_visit(
|
if(unprotected_visit(
|
||||||
@ -1609,7 +1609,7 @@ private:
|
|||||||
/* slot wasn't empty */
|
/* slot wasn't empty */
|
||||||
goto startover;
|
goto startover;
|
||||||
}
|
}
|
||||||
auto lck=access(group_exclusive{},pos0);
|
//auto lck=access(group_exclusive{},pos0);
|
||||||
if(BOOST_UNLIKELY(insert_counter(pos0)++!=counter)){
|
if(BOOST_UNLIKELY(insert_counter(pos0)++!=counter)){
|
||||||
/* other thread inserted from pos0, need to start over */
|
/* other thread inserted from pos0, need to start over */
|
||||||
pg->reset(n);
|
pg->reset(n);
|
||||||
|
Reference in New Issue
Block a user