Permalink
Browse files

added `local_actor::has_sync_failure_handler`

  • Loading branch information...
1 parent 682b0ee commit b361e0e7a34407a0c19c8110eae904c2e1141677 @Neverlord Neverlord committed Apr 3, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 cppa/local_actor.hpp
View
@@ -222,6 +222,13 @@ class local_actor : public extend<actor>::with<memory_cached> {
}
/**
+ * @brief Checks wheter this actor has a user-defined sync failure handler.
+ */
+ inline bool has_sync_failure_handler() {
+ return static_cast<bool>(m_sync_failure_handler);
+ }
+
+ /**
* @brief Calls <tt>on_sync_timeout(fun); on_sync_failure(fun);</tt>.
*/
inline void on_sync_timeout_or_failure(std::function<void()> fun) {

0 comments on commit b361e0e

Please sign in to comment.