@@ -73,21 +73,29 @@ class BCT_API protocol
7373 // / Messaging.
7474 // / -----------------------------------------------------------------------
7575
76- // / Bind a method in base or derived class (use BIND).
76+ // / Bind base or derived class method (use BIND).
7777 template <class Derived , typename Method, typename ... Args>
7878 inline auto bind (Method&& method, Args&&... args) NOEXCEPT
7979 {
8080 return BIND_SHARED (method, args);
8181 }
8282
83- // / Post a method in base or derived class to channel strand (use POST).
83+ // / Post base or derived class method to channel strand (use POST).
8484 template <class Derived , typename Method, typename ... Args>
8585 inline auto post (Method&& method, Args&&... args) NOEXCEPT
8686 {
8787 return boost::asio::post (channel_->strand (),
8888 BIND_SHARED (method, args));
8989 }
9090
91+ // / Post base or derived class method to network threadpool (use PARALLEL).
92+ template <class Derived , typename Method, typename ... Args>
93+ inline auto parallel (Method&& method, Args&&... args) NOEXCEPT
94+ {
95+ return boost::asio::post (channel_->service (),
96+ BIND_SHARED (method, args));
97+ }
98+
9199 // / Subscribe to messages broadcasts by type (use SUBSCRIBE_BROADCAST).
92100 // / Method is invoked with error::subscriber_stopped if already stopped.
93101 template <class Derived , class Message , typename Method, typename ... Args>
0 commit comments