File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ class ABSL_LOCKABLE ABSL_ATTRIBUTE_WARN_UNUSED SpinLock {
101101 ABSL_TSAN_MUTEX_POST_LOCK (this , 0 , 0 );
102102 }
103103
104+ ABSL_DEPRECATE_AND_INLINE ()
104105 inline void Lock () ABSL_EXCLUSIVE_LOCK_FUNCTION() { return lock (); }
105106
106107 // Try to acquire this SpinLock without blocking and return true if the
@@ -116,6 +117,7 @@ class ABSL_LOCKABLE ABSL_ATTRIBUTE_WARN_UNUSED SpinLock {
116117 return res;
117118 }
118119
120+ ABSL_DEPRECATE_AND_INLINE ()
119121 [[nodiscard]] inline bool TryLock () ABSL_EXCLUSIVE_TRYLOCK_FUNCTION(true ) {
120122 return try_lock ();
121123 }
@@ -139,6 +141,7 @@ class ABSL_LOCKABLE ABSL_ATTRIBUTE_WARN_UNUSED SpinLock {
139141 ABSL_TSAN_MUTEX_POST_UNLOCK (this , 0 );
140142 }
141143
144+ ABSL_DEPRECATE_AND_INLINE ()
142145 inline void Unlock () ABSL_UNLOCK_FUNCTION() { unlock (); }
143146
144147 // Determine if the lock is held. When the lock is held by the invoking
You can’t perform that action at this time.
0 commit comments