Re: [Cppcms-users] event driven functions inside CppCMS 1x
Brought to you by:
artyom-beilis
From: <sla...@ya...> - 2011-01-05 19:12:03
|
Thank you! It was about using xmpp transport - gloox lib actually. When needed wait for event onConnect or periodically call recv() after authorization in another threads. 05.01.2011, 22:01, "Artyom" <art...@ya...>: > ----- Original Message ---- > >> From: Якунин Владимир <sla...@ya...>; >> To: cpp...@li... >> Sent: Wed, January 5, 2011 12:13:23 PM >> Subject: [Cppcms-users] event driven functions inside CppCMS 1x >> >> Hello Artyom and Happy New Year! >> >> Whether there is an elegant way to use threaded callback functions inside >> CppCMS? >> As i know - CppCMS use Asio & boost::thread - so i still can use boost::thread >> natively >> (with some callback template inside calling). But may have a more ready >> solution inside CppCMS? > > Hello, > > You should be more specific about what you mean. > > If you want to post something for execution in the event loop you can use > cppcms::service::post > if you want to post something for execution in thread pool you can > cppcms::service::thread_pool. > > Artyom > >> ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |