On the quasithermodynamic theory of magnetic relaxation