This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 6c67bf0 Rename "ink_mutex_lock" to "ink_scoped_mutex_lock" for
better consistency.
6c67bf0 is described below
commit 6c67bf0ad50827dda2faa0fe8e7005229d063537
Author: Alan M. Carroll <[email protected]>
AuthorDate: Wed May 31 14:18:48 2017 -0500
Rename "ink_mutex_lock" to "ink_scoped_mutex_lock" for better consistency.
---
lib/ts/ink_mutex.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/ts/ink_mutex.h b/lib/ts/ink_mutex.h
index d0cd7e9..a0c36c9 100644
--- a/lib/ts/ink_mutex.h
+++ b/lib/ts/ink_mutex.h
@@ -74,21 +74,21 @@ ink_mutex_try_acquire(ink_mutex *m)
ink_mutex m;
// ...
{
- ink_mutex_lock lock(m);
+ ink_mutex_scoped_lock lock(m);
// code under lock.
}
// code not under lock
@endcode
*/
-class ink_mutex_lock
+class ink_scoped_mutex_lock
{
private:
ink_mutex &_m;
public:
- ink_mutex_lock(ink_mutex *m) : _m(*m) { ink_mutex_acquire(&_m); }
- ink_mutex_lock(ink_mutex &m) : _m(m) { ink_mutex_acquire(&_m); }
- ~ink_mutex_lock() { ink_mutex_release(&_m); }
+ ink_scoped_mutex_lock(ink_mutex *m) : _m(*m) { ink_mutex_acquire(&_m); }
+ ink_scoped_mutex_lock(ink_mutex &m) : _m(m) { ink_mutex_acquire(&_m); }
+ ~ink_scoped_mutex_lock() { ink_mutex_release(&_m); }
};
#endif /* _ink_mutex_h_ */
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].