Skip to content

Commit

Permalink
Merge branch 'hotfix/2.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoblath committed Apr 24, 2024
2 parents 1899392 + 2a9abce commit 8c2f794
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions library/service.hh
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,25 @@ namespace dripline
inline sent_msg_pkg_ptr service::send( request_ptr_t a_request ) const
{
a_request->sender_service_name() = f_name;
return core::send( a_request, f_channel );
// we don't use f_channel on this core::send command because a channel can only be used in a single thread,
// and f_channel is primarily meant for listening with the listener thread.
return core::send( a_request );
}

inline sent_msg_pkg_ptr service::send( reply_ptr_t a_reply ) const
{
a_reply->sender_service_name() = f_name ;
return core::send( a_reply, f_channel );
// we don't use f_channel on this core::send command because a channel can only be used in a single thread,
// and f_channel is primarily meant for listening with the listener thread.
return core::send( a_reply );
}

inline sent_msg_pkg_ptr service::send( alert_ptr_t a_alert ) const
{
a_alert->sender_service_name() = f_name;
return core::send( a_alert, f_channel );
// we don't use f_channel on this core::send command because a channel can only be used in a single thread,
// and f_channel is primarily meant for listening with the listener thread.
return core::send( a_alert );
}

} /* namespace dripline */
Expand Down

0 comments on commit 8c2f794

Please sign in to comment.