Deprecation of coop_t::deregister and coop_t::deregister_normally methods
eao197 opened this issue · comments
There are two methods in so_5::coop_t
introduced long time ago in v.5.5.8:
void so_5::coop_t::deregister(int reason);
void so_5::coop_t::deregister_normally()
They should not be used since v.5.6.0 because after the registration a user should not hold a reference (pointer) to coop_t object. There is only so_5::coop_handle_t
that can be used safely. And deregistration of a coop has to be initiated via so_5::environment_t::deregister_coop()
.
It seems that it's a mistake that these methods have not been removed from SObjectizer yet.
These methods are used in the implementation of SObjectizer and it's better to make them (or just coop_t::deregister
) private and not accessible for a user in v.5.9.