Inflationary cosmology and thermodynamics