diff options
author | Unknwon <u@gogs.io> | 2016-08-17 16:10:07 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-17 16:10:07 -0700 |
commit | ec332cf903354f8ab291ea33962d244a879c330d (patch) | |
tree | 17ad5b632b022ecd840fc140dabbd904b762ff4e /modules/sync/single_instance_pool.go | |
parent | 2c5411b00cc376e6e4307ebbe47fed4bbfafddb2 (diff) | |
download | gitea-ec332cf903354f8ab291ea33962d244a879c330d.tar.gz gitea-ec332cf903354f8ab291ea33962d244a879c330d.zip |
Minor naming improvement
Diffstat (limited to 'modules/sync/single_instance_pool.go')
-rw-r--r-- | modules/sync/single_instance_pool.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/sync/single_instance_pool.go b/modules/sync/single_instance_pool.go index 4a00d5283d..01d95fd0b5 100644 --- a/modules/sync/single_instance_pool.go +++ b/modules/sync/single_instance_pool.go @@ -24,6 +24,8 @@ type SingleInstancePool struct { // count maintains the number of times an instance with same identity checks in // to the pool, and should be reduced to 0 (removed from map) by checking out // with same number of times. + // The purpose of count is to delete lock when count down to 0 and recycle memory + // from map object. count map[string]int } |