BBS:      TELESC.NET.BR
Assunto:  src/syncterm/wren_bind_xfer.c
De:       Deuc¨
Data:     Thu, 7 May 2026 20:03:22 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/e9e8d92cee7a637af4a051c7
Modified Files:
	src/syncterm/wren_bind_xfer.c
Log Message:
wren_bind_xfer: use plain access on _Atomic vars where it suffices

For _Atomic-qualified lvalues, plain reads and assignments emit
seq_cst atomic loads/stores  identical to atomic_load / atomic_store
with default memory order.  The function forms only earn their keep
for atomic_exchange and atomic_compare_exchange_strong (no implicit
equivalent), which stay.

Also sidesteps an MSVC clang-cl issue where atomic_load(&x) used
inline as a function argument expanded such that the address operator
got lost, leaving the underlying type where a pointer-to-atomic was
expected.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]