:) ok, but it wont work, not don't "standard stuff" so ....

Any way just tried this:
    
    kthread_t *daemon;
    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();
    tid = (id_t)&daemon->t_tid;

    if((priocntl(P_LWPID, tid, PC_SETPARMS, &pcparms)) != 0){
        perror("priocntl failed!");
        return -1;
    }


this fails, still get "no such process". :(

What am I doing wrong here?
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to