Opened 8 years ago
Closed 8 years ago
#10349 closed Feature Requests (wontfix)
atomic misses specialization for enums
Reported by: | Owned by: | timblechmann | |
---|---|---|---|
Milestone: | To Be Determined | Component: | atomic |
Version: | Boost 1.56.0 | Severity: | Optimization |
Keywords: | enum, atomic | Cc: | Andrey.Semashev@… |
Description
Maybe there is a reason, that boost::atomic does not support a specialization for enums and handles them like user-defined types, but lock-free access to enums would be nice.
I just extended the existing implementation. Ofc, now code is redundant and functions common to integral and enum specializations maybe moved into a base class to avoid that.
Attachments (1)
Change History (4)
by , 8 years ago
Attachment: | atomic_enum.patch added |
---|
comment:1 by , 8 years ago
Cc: | added |
---|
The interface for atomic enums is the same as for user-defined structs, and structs up to the supported size are lock-free. What is the purpose of a separate specialization?
comment:3 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for enum specialization to atomic