3 ms·
I just can't see any connection between RAII and acquire/release. For example both C and the Linux kernel have acquire/release, neither have RAII. I think the
by millstone 6y ago
I just can't see any connection between RAII and acquire/release. For example both C and the Linux kernel have acquire/release, neither have RAII.
I think the terms "acquire" and "release" came from their connection to locking. Linux even used to call acquire and release fences "lock" and "unlock"; here's where it got changed: https://lore.kernel.org/linux-arch/20131217092435.GC21999@twins.programming.kicks-ass.net/ https://lore.kernel.org/linux-arch/20131217092435.GC21999@tw...