Threads and all that is wrong with them
Okay, I've got an interesting problem...
I have a threaded program, and each thread has several variables that need to be passed into it. Several ints, a float or two, and a matrix. Now, I've gotten my struct built so that I can pass in all these very odd values:
//Insert some code in here
And then I pass the struct into my thread
pthread_create(&pde_t, NULL, t_proc, (void*)&t_type);
Now, my question is HOW do I retrieve all of my info once I get into my thread?