From 28d37cf66842b1e4212d708204cc7a8b52aef0fa Mon Sep 17 00:00:00 2001 From: Viney Shih Date: Fri, 1 May 2020 23:19:15 +0800 Subject: [PATCH] fix README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b536c4..315053a 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ [![License](http://img.shields.io/badge/License-Apache_2-red.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) **go-lock** is a Golang library implementing an effcient read-write lock with the following built-in mechanism: -- Spinlock +- Mutex - Trylock - No-starve read-write solution -Native `sync/Mutex` and `sync/RWMutex` are very powerful and reliable. However, it became a disaster if the lock was not released as expected or someone was holding the lock too long at the peak time. Dealing with those cases, **go-lock** provides TryLock and TryLockWithTimeout function in addition to Lock and Unlock. +Native `sync/Mutex` and `sync/RWMutex` are very powerful and reliable. However, it became a disaster if the lock was not released as expected. Or someone was holding the lock too long at the peak time. It slowed down whole system. Dealing with those cases, **go-lock** implements TryLock, TryLockWithTimeout and TryLockWithContext function in addition to Lock and Unlock. It provides flexibility to control the resources. ## Installation