]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a dummy implementation of pthread_attr_getinheritsched.
authorTom Hughes <tom@compton.nu>
Sat, 16 Oct 2004 14:24:43 +0000 (14:24 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 16 Oct 2004 14:24:43 +0000 (14:24 +0000)
BUG: 79495

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2775

coregrind/vg_libpthread.c
coregrind/vg_libpthread_unimp.c

index 997096e27a4de79ebd3df0e05d32b68666332a93..c5c4bde59c35d26d06132cc99883a1076d228f27 100644 (file)
@@ -444,6 +444,15 @@ int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
    return 0;
 }
 
+int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit)
+{
+   static int moans = N_MOANS;
+   if (moans-- > 0) 
+      kludged("pthread_attr_getinheritsched", NULL);
+   *inherit = PTHREAD_EXPLICIT_SCHED;
+   return 0;
+}
+
 int pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit)
 {
    static int moans = N_MOANS;
index 58c953ace03819e397688201e08c540e0d739571..a5fb0b3d83eedcb1413f11dbd46af6dad9ccd983 100644 (file)
@@ -95,7 +95,7 @@ void _IO_ftrylockfile ( void )  { unimp("_IO_ftrylockfile"); }
 //void pthread_atfork ( void )  { unimp("pthread_atfork"); }
 //void pthread_attr_destroy ( void )  { unimp("pthread_attr_destroy"); }
 //void pthread_attr_getdetachstate ( void )  { unimp("pthread_attr_getdetachstate"); }
-void pthread_attr_getinheritsched ( void )  { unimp("pthread_attr_getinheritsched"); }
+//void pthread_attr_getinheritsched ( void )  { unimp("pthread_attr_getinheritsched"); }
 //void pthread_attr_getschedparam ( void )  { unimp("pthread_attr_getschedparam"); }
 //void pthread_attr_getschedpolicy ( void )  { unimp("pthread_attr_getschedpolicy"); }
 //void pthread_attr_getscope ( void )  { unimp("pthread_attr_getscope"); }