Previous | Next --- Slide 12 of 60
Back to Lecture Thumbnails
albystein

Would atomic> in C++ be equivalent to the above implementation? Would atomic> also be equivalent to:

int get(string key) { lock.lock(); int val = myHashMap[key]; lock.unlock(); return val; }

albystein

correction:

Would atomic> in C++ be equivalent to the above implementation? Would atomic> also be equivalent to:

int get(string key) { lock.lock(); int val = myHashMap[key]; lock.unlock(); return val; }

albystein

It seems like the backend parser is removing some of the brackets in my code. Can someone recommend another way for me to write code in this textbook? Does it accept Markdown?

Please log in to leave a comment.