Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

relaxed signatures of link and monitor relatadapted re member functio…

…ns of class actor
  • Loading branch information...
commit 608676f310d2f9d531fd1666876ec3d52568032b 1 parent b5de3fd
@Neverlord Neverlord authored
View
8 cppa/detail/scheduled_actor_dummy.hpp
@@ -41,10 +41,10 @@ struct scheduled_actor_dummy : abstract_scheduled_actor {
void dequeue(behavior&);
void dequeue(partial_function&);
void dequeue_response(behavior&, message_id_t);
- void link_to(intrusive_ptr<actor>&);
- void unlink_from(intrusive_ptr<actor>&);
- bool establish_backlink(intrusive_ptr<actor>&);
- bool remove_backlink(intrusive_ptr<actor>&);
+ void link_to(const intrusive_ptr<actor>&);
+ void unlink_from(const intrusive_ptr<actor>&);
+ bool establish_backlink(const intrusive_ptr<actor>&);
+ bool remove_backlink(const intrusive_ptr<actor>&);
void detach(const attachable::token&);
bool attach(attachable*);
void unbecome();
View
8 src/scheduled_actor_dummy.cpp
@@ -36,8 +36,8 @@ void scheduled_actor_dummy::quit(std::uint32_t) { }
void scheduled_actor_dummy::dequeue(behavior&) { }
void scheduled_actor_dummy::dequeue(partial_function&) { }
void scheduled_actor_dummy::dequeue_response(behavior&, message_id_t) { }
-void scheduled_actor_dummy::link_to(intrusive_ptr<actor>&) { }
-void scheduled_actor_dummy::unlink_from(intrusive_ptr<actor>&) { }
+void scheduled_actor_dummy::link_to(const intrusive_ptr<actor>&) { }
+void scheduled_actor_dummy::unlink_from(const intrusive_ptr<actor>&) { }
void scheduled_actor_dummy::detach(const attachable::token&) { }
bool scheduled_actor_dummy::attach(attachable*) { return false; }
void scheduled_actor_dummy::unbecome() { }
@@ -49,11 +49,11 @@ resume_result scheduled_actor_dummy::resume(util::fiber*) {
return resume_result::actor_blocked;
}
-bool scheduled_actor_dummy::establish_backlink(intrusive_ptr<actor>&) {
+bool scheduled_actor_dummy::establish_backlink(const intrusive_ptr<actor>&) {
return false;
}
-bool scheduled_actor_dummy::remove_backlink(intrusive_ptr<actor>&) {
+bool scheduled_actor_dummy::remove_backlink(const intrusive_ptr<actor>&) {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.