Subject: [Boost-bugs] [Boost C++ Libraries] #2918: shared_mutex for win32 size optimization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-06 15:23:41
#2918: shared_mutex for win32 size optimization
--------------------------+-------------------------------------------------
Reporter: andysem | Owner: anthonyw
Type: Patches | Status: new
Milestone: Boost 1.39.0 | Component: thread
Version: Boost 1.38.0 | Severity: Optimization
Keywords: shared_mutex |
--------------------------+-------------------------------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2918> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC