>I've tryed:
>
>kthread_t *t;
>pid_t tid;
>
>t = (kthread_t *)pthread_self();

>tid = (pid_t)&t->t_tid;
>
>that works I think, the t_tid is the current threads id right?

Actually, it doesn't.  Threads also do not have such nice numerical
IDs in Solaris.

>but the I want to change the scheduling class for this thread:
>
>sched_setscheduler(tid, SCHED_FIFO, &sp);

The first argument to sched_setscheduler is a pid, not a thread id.

Casper
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to