#include "common.h"
#include "threads-model.h"
#include "action.h"
-#include "pthread.h"
+#include "mypthread.h"
#include "snapshot-interface.h"
#include "datarace.h"
}
int pthread_mutex_init(pthread_mutex_t *p_mutex, const pthread_mutexattr_t *) {
+ cdsc::mutex *m = new cdsc::mutex();
+
if (!model) {
+ snapshot_system_init(10000, 1024, 1024, 40000);
model = new ModelChecker();
+ model->startChecker();
}
- cdsc::mutex *m = new cdsc::mutex();
-
ModelExecution *execution = model->get_execution();
execution->getMutexMap()->put(p_mutex, m);
+
return 0;
}