readerutil: fix atomic alignment for 32-bit platforms

Change-Id: I10eb60a9abbbaf5aeccb1eba9592ff5d354d7985
This commit is contained in:
Brad Fitzpatrick 2013-12-02 19:01:44 -08:00
parent b82b8efe4c
commit da1abea89e
1 changed files with 4 additions and 2 deletions

View File

@ -33,9 +33,11 @@ var (
)
type openFile struct {
// refCount must be 64-bit aligned for 32-bit platforms.
refCount int64 // starts at 1; only valid if initial increment >= 2
*os.File
refCount int64 // starts at 1; only valid if initial increment >= 2
path string // map key of openFiles
path string // map key of openFiles
}
func (f *openFile) Close() error {