2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-02 08:22:08 +00:00
Files
atomic/include
Andrey Semashev 0e5e52efad Improve lock pool implementation.
Increased lock pool size to 64 entries and improve pool efficiency:

- Shift off lower pointer bits that are zero due to object alignment.
- Mix higher pointer bits to account for alignment typically imposed by
  malloc/new implementations.
- Use bit masking to select a lock from pool, given that the pool size
  is a power of 2 now.

Also, extracted (u)intptr_t definition to a common header to avoid code
duplication.
2020-03-09 20:01:49 +03:00
..
2020-03-09 20:01:49 +03:00