diff -pru include/boost/thread/win32/shared_mutex.hpp /mnt/misc/win64/mingw64-x-boost/boost_1_63_0/boost/thread/win32/shared_mutex.hpp
|
a
|
b
|
namespace boost
|
| 27 | 27 | class shared_mutex |
| 28 | 28 | { |
| 29 | 29 | private: |
| 30 | | struct state_data |
| | 30 | union state_data |
| 31 | 31 | { |
| 32 | | unsigned shared_count:11, |
| 33 | | shared_waiting:11, |
| 34 | | exclusive:1, |
| 35 | | upgrade:1, |
| 36 | | exclusive_waiting:7, |
| 37 | | exclusive_waiting_blocked:1; |
| 38 | | |
| | 32 | struct { |
| | 33 | unsigned shared_count:11, |
| | 34 | shared_waiting:11, |
| | 35 | exclusive:1, |
| | 36 | upgrade:1, |
| | 37 | exclusive_waiting:7, |
| | 38 | exclusive_waiting_blocked:1; |
| | 39 | }; |
| | 40 | long sd_alias; |
| 39 | 41 | friend bool operator==(state_data const& lhs,state_data const& rhs) |
| 40 | 42 | { |
| 41 | | return *reinterpret_cast<unsigned const*>(&lhs)==*reinterpret_cast<unsigned const*>(&rhs); |
| | 43 | return lhs.sd_alias == rhs.sd_alias; |
| 42 | 44 | } |
| 43 | 45 | }; |
| 44 | 46 | |