Skip to content

Commit 793166d

Browse files
committed
wallet: change the write semaphore to a BinarySemaphore
Follow-up commits will make a distinction between Semaphore and BinarySemaphore.
1 parent 6790ad2 commit 793166d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/sqlite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class SQLiteDatabase : public WalletDatabase
127127

128128
// Batches must acquire this semaphore on writing, and release when done writing.
129129
// This ensures that only one batch is modifying the database at a time.
130-
CSemaphore m_write_semaphore;
130+
BinarySemaphore m_write_semaphore;
131131

132132
bool Verify(bilingual_str& error);
133133

0 commit comments

Comments
 (0)