X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ebe4cd9a47fdc974ebe8ec1310777c433411715..7f90173083cea6c05e9a2418bc11c47750d006d8:/src/kernel/activity/SemaphoreImpl.hpp diff --git a/src/kernel/activity/SemaphoreImpl.hpp b/src/kernel/activity/SemaphoreImpl.hpp index 361c7cf217..c340db827e 100644 --- a/src/kernel/activity/SemaphoreImpl.hpp +++ b/src/kernel/activity/SemaphoreImpl.hpp @@ -30,11 +30,11 @@ public: void acquire(actor::ActorImpl* issuer, double timeout); void release(); - bool would_block() { return (value_ == 0); } + bool would_block() const { return (value_ == 0); } void remove_sleeping_actor(actor::ActorImpl& actor) { xbt::intrusive_erase(sleeping_, actor); } - unsigned int get_capacity() { return value_; } - bool is_used() { return not sleeping_.empty(); } + unsigned int get_capacity() const { return value_; } + bool is_used() const { return not sleeping_.empty(); } friend void intrusive_ptr_add_ref(SemaphoreImpl* sem) {