I want to create a timer so that after the time has passed (suppose 10 seconds) the control should exit the function. Please note that I start the timer inside the function. The code is listed below. I want to give a certain period for this function, so that after the time has expired, when the control should exit the function. I do not want to calculate the time. I want to give my time for the function to complete execution in this period of time ... it is assumed that the function is waiting for input, and then after the expiration date the control should exit, indicating that "the time has expired". When it exits a function, it should continue to execute the next function ... This is possible in C ++ ...
Begin();
// here I would like to add timer.
v_CallId = v_CallId1;
call_setup_ind();
call_alert_ind();
dir_read_search_cnf();
dir_save_cnf();
END();
source
share