I am trying to block a method using mutec from this article here it claims to create a member variable of the class as such
pthread_mutex_t mutex;
Then initialize it as such
pthread_mutex_init(&mutex, NULL);
Then use it as such
void MyLockingFunction() { pthread_mutex_lock(&mutex);
I get the following warning in step 2 when I initialize it.
Implicit declaration of function 'pthread_mutex_init' is invalid in C99
What does it mean? Should I ignore him?
source share