#include #include #include #include // to make this test fail, you can... #if 0 #define rtapi_mutex_give(x) (void)0 #define rtapi_mutex_get(x) (void)0 #endif const unsigned int N = 100000; unsigned long mut; unsigned long count; void *thread_fun(void *unused) { for(unsigned long i=0; i