mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Fix sessionpool comments.
This commit is contained in:
parent
6e5f24924f
commit
2b20d7a555
1 changed files with 1 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ func New() (pool *SessionPool) {
|
|||
// the SessionPool checks whether the ID being reclaimed
|
||||
// is in its list of used IDs. If this is not the case,
|
||||
// the program will panic.
|
||||
// panic.
|
||||
func (pool *SessionPool) EnableUseTracking() {
|
||||
if len(pool.unused) != 0 || pool.cur != 0 {
|
||||
panic("Attempt to enable use tracking on an existing SessionPool.")
|
||||
|
|
@ -41,7 +40,7 @@ func (pool *SessionPool) EnableUseTracking() {
|
|||
}
|
||||
|
||||
// Get a new session ID from the SessionPool.
|
||||
// Must be reclaimed using Reclaim() when done.
|
||||
// Must be reclaimed using Reclaim() when done using it.
|
||||
func (pool *SessionPool) Get() (id uint32) {
|
||||
pool.mutex.Lock()
|
||||
defer pool.mutex.Unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue