Is there a way to use thread to call a parametrized class constructor. In the examples I have seen I can only see thread running functions and member functions. To be more specific I would need it to run this constructor:
Thermistor( ukd_Adc * pAdc,
const lookup_table_t * pLUT,
uint8_t numOfLutElements );
UPDATE: I need the thread to call the class constructor since inside the constructor is an assert functionality to check for edge cases. If there is an edge case like the pointer to ukd_Adc being NULL the assert will make it hang in an infinite loop. This thread is going to allow me to set a time limit on how long the constructor will run so it does not go into an infinite loop. This is for testing purposes since google test does not have a timeout feature to my knowledge.
Aucun commentaire:
Enregistrer un commentaire