Hi, I have extend the kthread_t structute in thread.h with a 

int flag;

field. 

I have also extended the sched_param structure in sched.h with this flag:

int flag;

I want to set this flag via the sched_param structure, I also want it to be set 
to 0 when I create a new pthread.


That is, in pthread_create I add:

curthread->flag = 0; <-- Is this correct??

And in _thread_setschedparam_main (pthread_setschedparam) I add:
What I want to add is something like:

curthread->flag = param->flag;

But currthread is not the right thread. :( where is the pointer to the thread 
with tid tid in this function? How do I set this flag?
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to