You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to compile the above-referenced file results in a slew of errors, most of them like this:
~/Desktop/ThreadSampleCode/ThreadSampleCode/UnboundedBlockingQueue.m:17:9: Implicit declaration of function 'pthread_mutex_init' is invalid in C99
~/Desktop/ThreadSampleCode/ThreadSampleCode/UnboundedBlockingQueue.m:17:9: Declaration of 'pthread_mutex_init' must be imported from module 'Darwin.POSIX.pthread' before it is required
To fix it, add the following import statement to UnboundedBlockingQueue.h:
Trying to compile the above-referenced file results in a slew of errors, most of them like this:
To fix it, add the following import statement to UnboundedBlockingQueue.h:
#import <pthread.h>
The new header file should now read, in totality:
The text was updated successfully, but these errors were encountered: