Opened 14 years ago

Closed 12 years ago

#2918 closed Patches (fixed)

shared_mutex for win32 size optimization

Reported by: Andrey Semashev Owned by: Anthony Williams
Milestone: Boost 1.39.0 Component: thread
Version: Boost 1.38.0 Severity: Optimization
Keywords: shared_mutex Cc:

Description

The shared_mutex for win32 API contains references to the semaphore handles in the internal array. While this allows to make the implementation code cleaner, it also adds 33% of size overhead for the mutex object (8 bytes on x86, 16 bytes on x64).

Please find the attached patch that removes the references and compacts the mutex while moderately affecting the code readability.

Attachments (1)

shared_mutex.hpp.patch (3.1 KB ) - added by Andrey Semashev 14 years ago.
The shared_mutex size optimization

Download all attachments as: .zip

Change History (2)

by Andrey Semashev, 14 years ago

Attachment: shared_mutex.hpp.patch added

The shared_mutex size optimization

comment:1 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed

Fixed on trunk

Note: See TracTickets for help on using tickets.