Skip to content

Commit

Permalink
Merge pull request libbitcoin#367 from evoskuil/master
Browse files Browse the repository at this point in the history
Regenerate artifacts.
  • Loading branch information
evoskuil authored Feb 11, 2024
2 parents d4b3735 + 7439a2c commit 92e0f28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/bitcoin/network/p2p.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ class BCT_API p2p
/// Return a reference to the network strand (thread safe).
asio::strand& strand() NOEXCEPT;

/// The strand is running in this thread.
bool stranded() const NOEXCEPT;

/// TEMP HACKS.
/// -----------------------------------------------------------------------
/// Not thread safe, read from stranded handler only.
Expand Down Expand Up @@ -213,9 +216,6 @@ class BCT_API p2p
virtual void save(const address_cptr& message,
count_handler&& complete) NOEXCEPT;

/// The strand is running in this thread.
bool stranded() const NOEXCEPT;

private:
code subscribe_close(stop_handler&& handler, object_key key) NOEXCEPT;
connectors_ptr create_connectors(size_t count) NOEXCEPT;
Expand Down
1 change: 0 additions & 1 deletion src/p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ asio::strand& p2p::strand() NOEXCEPT
return strand_;
}

// protected
bool p2p::stranded() const NOEXCEPT
{
return strand_.running_in_this_thread();
Expand Down

0 comments on commit 92e0f28

Please sign in to comment.