Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stm.hpp>
- stm::shared<int> sh(0);
- int main(){
- stm::atomic([&](stm::transaction& tx) {
- stm::atomic([&](stm::transaction& tx) {
- sh.open_r(tx);
- });
- stm::atomic([&](stm::transaction& tx) {
- tx.abort();
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement