// push interface
// push(const Tvalue* inptr) -> push(const Tvalue& value)
by Kanda
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-shamshel-refine@7892
1ed66053-1c2d-0410-8867-
f7571e6e31d3
delete new_node;
}
- void push(const Tvalue* inptr){
+ void push(const Tvalue& value){
node_type *_new_node,*_tail,*_next;
_new_node = new node_type();
- _new_node->value = const_cast<Tvalue*>( inptr );
+ _new_node->value = const_cast<Tvalue*>(&value);
// transaction st
while(true){
}else{
cas(&tailloc,_tail,_next);
}
-
}
// transaction ed