]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Implement (nop, but that's OK according to POSIX) pthread_set_concurrency.
authorJulian Seward <jseward@acm.org>
Sun, 8 Dec 2002 23:51:32 +0000 (23:51 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 8 Dec 2002 23:51:32 +0000 (23:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1355

coregrind/arch/x86-linux/vg_libpthread.c
coregrind/arch/x86-linux/vg_libpthread_unimp.c
coregrind/vg_libpthread.c
coregrind/vg_libpthread_unimp.c

index 47d02da1d9c4a879bd5efd8c40eb809330e279fa..deaeab7f9de8ca6cb75e06688c63cb2dd4cfec3a 100644 (file)
@@ -513,6 +513,15 @@ int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
    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 
index b727f2f60e60619bbba0025265d08ab3d33d9ceb..1b986d99f26f0a5b10e1092d1a455847accfcf63 100644 (file)
@@ -253,8 +253,8 @@ __attribute__((weak)) void pthread_mutexattr_setkind_np ( void )
                       { 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 )
index 47d02da1d9c4a879bd5efd8c40eb809330e279fa..deaeab7f9de8ca6cb75e06688c63cb2dd4cfec3a 100644 (file)
@@ -513,6 +513,15 @@ int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
    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 
index b727f2f60e60619bbba0025265d08ab3d33d9ceb..1b986d99f26f0a5b10e1092d1a455847accfcf63 100644 (file)
@@ -253,8 +253,8 @@ __attribute__((weak)) void pthread_mutexattr_setkind_np ( void )
                       { 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 )