I might be missing something here but....

micke wrote:
> :) ok, but it wont work, not don't "standard stuff" so ....
> 
> Any way just tried this:
>     
>     kthread_t *daemon;
kthread == KERNEL thread

>     pcparms_t pcparms;
>     rtparms_t *rtparmsp;
>     id_t tid;
>     int rt_id;
> 
>     rt_id = rt_class_id;
>     pcparms.pc_cid = rt_id;
>     rtparmsp = (struct rtparms *)pcparms.pc_clparms;
>     rtparmsp->rt_pri = some_prio;
>     rtparmsp->rt_tqsecs = RT_TQINF;
> 
>     daemon = (kthread_t *)pthread_self();
returns pthread_t
You just can't assume pthread_t == kthread_t

See previous post on using standard pthread_* library calls.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to