Jump to content

Error Value


Psicopunk
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.