Permalink
Browse files

relaxed signatures of link and monitor relatadapted re member functio…

…ns of class actor
  • Loading branch information...
1 parent b5de3fd commit 608676f310d2f9d531fd1666876ec3d52568032b @Neverlord Neverlord committed Aug 22, 2012
Showing with 8 additions and 8 deletions.
  1. +4 −4 cppa/detail/scheduled_actor_dummy.hpp
  2. +4 −4 src/scheduled_actor_dummy.cpp
@@ -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();
@@ -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;
}

0 comments on commit 608676f

Please sign in to comment.