multi: 64bit aligment of atomic vars on arm/x86-32

This commit is contained in:
maurycy authored and Olaoluwa Osuntokun committed 2018-06-04 20:02:34 -07:00
1 parent d2bcb708f3
commit 3be08e69cf
21 files changed
+67 -60

No files matched your search

+2 -1
View File
@@ -1241,6 +1241,8 @@ func compactLogs(ourLog, theirLog *updateLog,
//
// See the individual comments within the above methods for further details.
type LightningChannel struct {
shutdown int32 // To be used atomically.
// Signer is the main signer instances that will be responsible for
// signing any HTLC and commitment transaction generated by the state
// machine.
@@ -1330,7 +1332,6 @@ type LightningChannel struct {
cowg sync.WaitGroup
wg sync.WaitGroup
shutdown int32
quit chan struct{}
}
+2 -2
View File
@@ -125,8 +125,8 @@ type signJobResp struct {
// TODO(roasbeef): rename?
// * ecdsaPool?
type sigPool struct {
started uint32
stopped uint32
started uint32 // To be used atomically.
stopped uint32 // To be used atomically.
signer Signer
+5 -3
View File
@@ -221,6 +221,11 @@ type addSingleFunderSigsMsg struct {
// Bitcoin Core + ZeroMQ, etc. Eventually, the wallet won't require a full-node
// at all, as SPV support is integrated into btcwallet.
type LightningWallet struct {
started int32 // To be used atomically.
shutdown int32 // To be used atomically.
nextFundingID uint64 // To be used atomically.
// Cfg is the configuration struct that will be used by the wallet to
// access the necessary interfaces and default it needs to carry on its
// duties.
@@ -258,7 +263,6 @@ type LightningWallet struct {
// monotonically integer. All requests concerning the channel MUST
// carry a valid, active funding ID.
fundingLimbo map[uint64]*ChannelReservation
nextFundingID uint64
limboMtx sync.RWMutex
// lockedOutPoints is a set of the currently locked outpoint. This
@@ -266,8 +270,6 @@ type LightningWallet struct {
// the currently locked outpoints.
lockedOutPoints map[wire.OutPoint]struct{}
started int32
shutdown int32
quit chan struct{}
wg sync.WaitGroup