We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int8_t zp_mutex_init(zp_mutex_t *m) { return pthread_mutex_init(m, 0); } int8_t zp_mutex_free(zp_mutex_t *m) { return pthread_mutex_destroy(m); }
The error values returned by pthread_mutex_init can be positive: https://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_mutex_init.html https://github.com/openbsd/src/blob/8700ed7d87c3b82368687dfae3281b306aecbe66/sys/sys/errno.h
pthread_mutex_init
But in zenoh c interface it's assumed that error value should always be negative.
The text was updated successfully, but these errors were encountered:
@milyin please assign it to me
Sorry, something went wrong.
sashacmc
No branches or pull requests
Describe the bug
The error values returned by
pthread_mutex_init
can be positive:https://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_mutex_init.html
https://github.com/openbsd/src/blob/8700ed7d87c3b82368687dfae3281b306aecbe66/sys/sys/errno.h
But in zenoh c interface it's assumed that error value should always be negative.
To reproduce
System info
The text was updated successfully, but these errors were encountered: