sysmgr/peripheral/mailbox.cc
bool Mailbox::ReadSocTemperature(float *soc_temperature) {
  std::string value_str;
  bool  rtn;

  *soc_temperature = 0.0;
  rtn = ReadValueString(kMailboxCpuTemperatureFile, &value_str);
  if (rtn == true) {
    rtn = ConvertStringToFloat(value_str, soc_temperature);
  }
  return rtn;
}
/* Read CPU temperature
 * rtn = true, soc_temperature - current CPU temperature
 *       false soc_temperature - an invalid value
 */
Read CPU temperature
rtn = true, soc_temperature - current CPU temperature
false soc_temperature - an invalid value
Read CPU temperature rtn = true soc_temperature - current CPU temperature false soc_temperature - an invalid value
bool Mailbox::ReadSocTemperature(float *soc_temperature) {
  std::string value_str;
  bool  rtn;
  *soc_temperature = 0.0;
  rtn = ReadValueString(kMailboxCpuTemperatureFile, &value_str);
  if (rtn == true) {
    rtn = ConvertStringToFloat(value_str, soc_temperature);
  }
  return rtn;
}
bool Mailbox :: ReadSocTemperature ( float * soc_temperature ) { std :: string value_str ; bool rtn ; * soc_temperature = 0.0 ; rtn = ReadValueString ( kMailboxCpuTemperatureFile , & value_str ) ; if ( rtn == true ) { rtn = ConvertStringToFloat ( value_str , soc_temperature ) ; } return rtn ; }
Read CPU temperature
 rtn = true, soc_temperature - current CPU temperature
       false soc_temperature - an invalid value
Read CPU temperature rtn = true soc_temperature - current CPU temperature false soc_temperature - an invalid value