bitcoin/BRWalletManager.c
/**
 * These handlers are called by the event handler thread. They are free to acquire
 * locks as needed.
 */
These handlers are called by the event handler thread. They are free to acquire
locks as needed.
These handlers are called by the event handler thread . They are free to acquire locks as needed .
extern int
bwmHandleAnnounceBlockNumber (BRWalletManager manager,
                              int rid,
                              uint64_t blockNumber) {
    assert (eventHandlerIsCurrentThread (manager->handler));
    pthread_mutex_lock (&manager->lock);
    BRSyncManagerAnnounceGetBlockNumber (manager->syncManager,
                                         rid,
                                         (int32_t) blockNumber);
    pthread_mutex_unlock (&manager->lock);
    return 1;
}
extern int bwmHandleAnnounceBlockNumber ( BRWalletManager manager , int rid , uint64_t blockNumber ) { assert ( eventHandlerIsCurrentThread ( manager -> handler ) ) ; pthread_mutex_lock ( & manager -> lock ) ; BRSyncManagerAnnounceGetBlockNumber ( manager -> syncManager , rid , ( int32_t ) blockNumber ) ; pthread_mutex_unlock ( & manager -> lock ) ; return 1 ; }
These handlers are called by the event handler thread.
These handlers are called by the event handler thread .