Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #89088
| From | Andrey Tarasevich <andreytarasevich@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: What does "current time" mean? |
| Date | 2023-02-10 20:53 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <ts76vk$1b0me$1@dont-email.me> (permalink) |
| References | <tru716$3r5bl$1@dont-email.me> |
On 02/07/23 11:00 AM, Manu Raju wrote: > Some of you might be interested in this paper by Amazon Engineer: > > <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0342r1.pdf> We have already seen issues of that same general nature previously with thread synchronization primitives. Before the proper memory fencing was introduced into the language there was no guarantee that mutex.lock(); <access to the resource> mutex.unlock(); would not get reordered into <access to the resource> mutex.lock(); mutex.unlock(); thus defeating the synchronization. Back in C++98 times volatile access was used as a workaround to introduce observable behavior and force the desired sequencing. Apparently, a more general mechanism is needed for sequence fencing not tied to memory access. -- Best regards, Andrey
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
What does "current time" mean? Manu Raju <MR@invalid.invalid> - 2023-02-07 19:00 +0000
Re: What does "current time" mean? scott@slp53.sl.home (Scott Lurndal) - 2023-02-07 19:39 +0000
Re: What does "current time" mean? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-02-07 12:00 -0800
Re: What does "current time" mean? Vir Campestris <vir.campestris@invalid.invalid> - 2023-02-09 12:11 +0000
Re: What does "current time" mean? David Brown <david.brown@hesbynett.no> - 2023-02-09 14:13 +0100
Re: What does "current time" mean? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-02-07 11:51 -0800
Re: What does "current time" mean? David Brown <david.brown@hesbynett.no> - 2023-02-07 23:16 +0100
Re: What does "current time" mean? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-02-09 04:19 -0800
Re: What does "current time" mean? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-02-09 05:27 -0800
Re: What does "current time" mean? Andrey Tarasevich <andreytarasevich@hotmail.com> - 2023-02-10 20:53 -0800
csiph-web