The codes our instructor provided for us has been giving me a "no such file" error message for the line #include <mutex.h> in the following code:
/*
* mutex.cpp
* scheduling
*
*/
#include <mutex.h>
Mutex::Mutex()
{
}
Mutex::~Mutex()
{
}
int Mutex::Lock()
{
}
int Mutex::Unlock()
{
}
The mutex.h code it is referring to is here:
/*
* mutex.h
* scheduling
*
*/
#ifndef MUTEX_H
#define MUTEX_H
#include<pthread.h>
class Mutex
{
private:
pthread_mutex_t mutex;
public:
/** Initializing the mutex
*/
Mutex();
/** Destroy the mutex
*/
~Mutex();
/** Acquire the lock
* @return The return value of pthread_mutex_lock().
*/
int Lock();
/** Release the lock
* @return The return value of pthread_mutex_unlock().
*/
int Unlock();
};
#endif
I've double checked and both codes are in the same directory and just in case you need to know, I am using Eclipse C/C++ and MinGW. Hopefully someone can help me out here so I can actually get started on this assignment!