lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit 8b1b4459232672f6b4286fead7748c5d0680e7d7
parent dafe3386aeedd740d277daf8204e6d66d63ce210
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed,  3 Jan 2024 16:58:26 +0900

add comment

Diffstat:
Mfid.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/fid.go b/fid.go @@ -48,6 +48,7 @@ func newFid(id uint32) *fid { } } +// not safe for concurrent use. func (f *fid) String() string { fid := int64(f.fid) if uint32(fid) == NOFID { @@ -96,6 +97,7 @@ func (pool *fidPool) delete(id uint32) { delete(pool.m, id) } +// not safe for concurrent use. func (pool *fidPool) String() string { s := "&fidPool{\n" for fnum, fstruct := range pool.m {