Click to See Complete Forum and Search --> : Can I call functions in a thread


cy163
August 27th, 2008, 11:15 AM
Hello ALL,


I wonder if it is safe to call a function in a thread, which recursively calls other functions like the following manner.

void thread_func(void*)
{
......
subfunc_1();
......

}

subfunc_1()
{
subfunc_11();
}

subfunc_11()
{
subfunc_111();
}

ishaypeled
August 27th, 2008, 04:28 PM
It's safe, you're just altering the instruction flow of the thread.