shultays
Joined 12 years ago
Karma
1,740
Submissions
962
Member since
Jan 13
Joined 12 years ago
“Bookmark Link…”
“Save Link As…”
“Email Image…”
“Set Image as Desktop Background…”
“Bookmark Page…”
... we can’t get rid of these things by simply toggling some option in about:config ...
Why seemingly the most useless options are not in about:configI don't really see/care where my mouse exactly is. If it is outside or inside the window. Once my cursor turns to resize cursor, I just start dragging.
So imagine a technology that shines a laser on a car or a block of concrete and makes it blue
There is something like that for sheets of steel at least
https://www.youtube.com/watch?v=2ncEfAxkuFAAnd here is a video explains it https://www.youtube.com/watch?v=RsGHr7dXLuI
I had read an article about how DOOMs engine works and noticed how a variable for tracking the demo kept being incremented even after the next demo started. This variable was compared with a second one storing its previous value
Doesn't sound like something that would crash, I wonder what was the actual crash The comments show the values each thread observed.
Why? Nothing in that code implies any synchronization between threads and force an ordering. thread_2 can fetch value of y before 1 writes to it which would set b to 0.You would need additional mechanisms (an extra atomic that you compare_exchange) to force order
edit: but I guess the comment means it is the thing author wants to observe
Now, the big question: is this execution even possible under the C++ memory model?
sure, use an extra atomic to synchronize threads