You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rclcpp/context lacking a const method for shutdown_reason #1323
). This function requires locking the init_mutex_ which prevents it from being const. I suggested @Blast545 open this issue, just to see if others thought there might be more preferred ways of doing this.
One possible solution would be to make init_mutex_ and perhaps other mutexes mutable.
Activity
brawner commentedon Sep 21, 2020
Link to
.cpp(rclcpp/rclcpp/src/rclcpp/context.cpp
Lines 289 to 294 in 3a4ac0c
init_mutex_which prevents it from being const. I suggested @Blast545 open this issue, just to see if others thought there might be more preferred ways of doing this.One possible solution would be to make
init_mutex_and perhaps other mutexesmutable.suab321321 commentedon Feb 21, 2021
@clalancette should I follow @brawner and make it the
init_mutex_mutable?and open a PR
clalancette commentedon Feb 22, 2021
Yeah, that is the usual way to deal with this problem. Making
init_mutex_mutable seems totally reasonable to me.fujitatomoya commentedon Mar 20, 2021
done with #1578