>:) ok, but it wont work, not don't "standard stuff" so .... >Any way just tried this: >
You can't use this: > kthread_t *daemon; do this: > daemon = (kthread_t *)pthread_self(); expect this to return anything meaningful: > tid = (id_t)&daemon->t_tid; > Have you tried any of: pthread_attr_getinheritsched (3c) - get or set inheritsched attribute pthread_attr_getschedparam (3c) - get or set schedparam attribute pthread_attr_getschedpolicy (3c) - get or set schedpolicy attribute pthread_attr_getinheritsched (3c) - get or set inheritsched attribute pthread_attr_getschedparam (3c) - get or set schedparam attribute pthread_attr_getschedpolicy (3c) - get or set schedpolicy attribute pthread_getschedparam (3c) - access dynamic thread scheduling parameters pthread_getschedparam (3c) - access dynamic thread scheduling parameters pthread_setschedprio (3c) - dynamic thread scheduling parameters access Those are the functions you will need to use. Casper _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
