@@ -60,7 +60,7 @@ namespace geode
6060 [[nodiscard]] std::shared_ptr< AttributeBase > find_generic_attribute (
6161 std::string_view name ) const
6262 {
63- absl::ReaderMutexLock lock{ mutex () };
63+ absl::ReaderMutexLock lock{ & mutex () };
6464 return find_attribute_base ( name );
6565 }
6666
@@ -74,7 +74,7 @@ namespace geode
7474 [[nodiscard]] std::shared_ptr< ReadOnlyAttribute< T > > find_attribute (
7575 std::string_view name ) const
7676 {
77- absl::ReaderMutexLock lock{ mutex () };
77+ absl::ReaderMutexLock lock{ & mutex () };
7878 auto attribute =
7979 std::dynamic_pointer_cast< ReadOnlyAttribute< T > >(
8080 find_attribute_base ( name ) );
@@ -110,7 +110,7 @@ namespace geode
110110 AttributeProperties properties )
111111 {
112112 {
113- absl::ReaderMutexLock lock{ mutex () };
113+ absl::ReaderMutexLock lock{ & mutex () };
114114 auto attribute = find_attribute_base ( name );
115115 auto typed_attribute =
116116 std::dynamic_pointer_cast< Attribute< T > >( attribute );
@@ -119,7 +119,7 @@ namespace geode
119119 return typed_attribute;
120120 }
121121 }
122- absl::MutexLock lock{ mutex () };
122+ absl::MutexLock lock{ & mutex () };
123123 auto attribute = find_attribute_base ( name );
124124 auto typed_attribute =
125125 std::dynamic_pointer_cast< Attribute< T > >( attribute );
0 commit comments