return 0;
}
+__attribute__((weak))
+int pthread_setconcurrency(int new_level)
+{
+ if (new_level < 0)
+ return EINVAL;
+ else
+ return 0;
+}
+
/* ---------------------------------------------------
Helper functions for running a thread
{ vgPlain_unimp("pthread_mutexattr_setkind_np"); }
__attribute__((weak)) void pthread_mutexattr_setpshared ( void )
{ vgPlain_unimp("pthread_mutexattr_setpshared"); }
-__attribute__((weak)) void pthread_setconcurrency ( void )
- { vgPlain_unimp("pthread_setconcurrency"); }
+//__attribute__((weak)) void pthread_setconcurrency ( void )
+// { vgPlain_unimp("pthread_setconcurrency"); }
__attribute__((weak)) void pthread_spin_destroy ( void )
{ vgPlain_unimp("pthread_spin_destroy"); }
__attribute__((weak)) void pthread_spin_init ( void )
return 0;
}
+__attribute__((weak))
+int pthread_setconcurrency(int new_level)
+{
+ if (new_level < 0)
+ return EINVAL;
+ else
+ return 0;
+}
+
/* ---------------------------------------------------
Helper functions for running a thread
{ vgPlain_unimp("pthread_mutexattr_setkind_np"); }
__attribute__((weak)) void pthread_mutexattr_setpshared ( void )
{ vgPlain_unimp("pthread_mutexattr_setpshared"); }
-__attribute__((weak)) void pthread_setconcurrency ( void )
- { vgPlain_unimp("pthread_setconcurrency"); }
+//__attribute__((weak)) void pthread_setconcurrency ( void )
+// { vgPlain_unimp("pthread_setconcurrency"); }
__attribute__((weak)) void pthread_spin_destroy ( void )
{ vgPlain_unimp("pthread_spin_destroy"); }
__attribute__((weak)) void pthread_spin_init ( void )