If there is no net flow of thermal energy between two systems when they are connected by a path permeable to heat, they are said to be in thermal equilibrium with each other. Consequently, a system is said to be in thermal equilibrium with itself if the temperature within the system is spatially uniform and temporally constant.
See