Psicopunk Posted May 26, 2008 at 04:46 PM Report Share #187605 Posted May 26, 2008 at 04:46 PM Boas, estou com um problema para identificar o tipo de erro que ocorre quando uso pthread_setschedparam(). É retornado o valor 22. No entanto, não consigo perceber que tipo de erro é. No manpage tem: Errors On error, pthread_setschedparam returns the following error codes: ENOTSUP policy is not SCHED_OTHER. EINVAL One of the arguments is invalid, or the priority value specified by param is not valid for the specified policy. ESRCH The target_thread is invalid or has already terminated On error, pthread_getschedparam returns the following error codes: ESRCH the target_thread is invalid or has already terminated Mas quando tento usar "EINVAL" dá-me um tipo de erro a compilar: `ENOSYS' undeclared (first use in this function) Alguém sabe dizer-me como dar a volta a isto? Estive a pesquisar mas ainda não vi nada que me pudesse ajudar... Link to comment Share on other sites More sharing options...
zedlav Posted June 5, 2008 at 01:10 PM Report Share #189632 Posted June 5, 2008 at 01:10 PM boas. #include <errno.h> http://zedlav.dyndns.org Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now