So, I'm getting an error on this line of code;
else if(lockError == EBUSY)
I get the error;
use of undeclared identifier 'EBUSY'
How do I compare my int lockError to the EBUSY that might be returned when I try a pthread_mutex_unlock.
You forgot to include #include<errno.h>
where EBSUY
is defined. See errno.h .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.