Commit Graph

9 Commits

Author SHA1 Message Date
Dustin Sallings 4fb88a2120 Added syncutil.Once
Change-Id: I83744a3646bac449934ab0dc6477b4dd1c351e5e
2014-01-25 12:04:47 -08:00
Brad Fitzpatrick beac5cd5f5 syncutil: fix Group.Errs doc 2014-01-09 11:21:05 -08:00
Bill Thiede 1e447b0f69 pkg/server: RAM based concurrency limiter.
The RAM limit is based on the expected amount of allocations not the
measured allocation.

Issue https://camlistore.org/issue/316

Change-Id: I3ccff6ddf880f3f9a90f6c27f15f9662fad02712
2014-01-04 23:05:18 -08:00
Brad Fitzpatrick d7c58ebc7c syncutil: in RWMutexTracker, log.Fatal instead of panic on double-RLock
Change-Id: Ifc34b29fb8264f96e2e9516948d9c0b4bfff984a
2013-12-24 13:45:50 -08:00
Brad Fitzpatrick a197984bef syncutil: more debugging and paranoia
Change-Id: I9dcb903e4f0918097130a93c14c498c260832294
2013-12-12 11:13:03 +04:00
Brad Fitzpatrick fc1dfc71a2 syncutil: more RWMutexTracker logging and tracking
Change-Id: I02032a49b7413f56f8283b4ab446fcb0474d4ff3
2013-12-12 09:08:49 +04:00
Brad Fitzpatrick d6c5f4f396 syncutil: add RWMutexTracker debugging type
Change-Id: Ifac22bbea3ef116685baa617d42a2cd7f16a1dd3
2013-12-11 22:13:31 +04:00
Brad Fitzpatrick c8044d02ea Add syncutil.Group: an easy way to do multiple things at once.
Change-Id: Ie28885a5f42019dd1c3fb14f92c7cc5d40e08742
2013-09-12 16:18:39 +01:00
Brad Fitzpatrick 59534f0ad6 Move pkg/gate to pkg/syncutil, to house more stuff.
Change-Id: I737458641a9de03da55ed627bfac10f3377a13aa
2013-09-12 16:04:10 +01:00