pthread_setcanceltype() and pthread_testcancel() do not have to be system calls if cancellation points are not enabled.

This commit is contained in:
Gregory Nutt
2016-12-10 07:40:48 -06:00
parent 18ce5496e4
commit e62b3bccd3
8 changed files with 37 additions and 21 deletions
+16 -10
View File
@@ -401,19 +401,25 @@
# define SYS_pthread_mutex_unlock (__SYS_pthread+21)
# define SYS_pthread_once (__SYS_pthread+22)
# define SYS_pthread_setcancelstate (__SYS_pthread+23)
# define SYS_pthread_setcanceltype (__SYS_pthread+24)
# define SYS_pthread_setschedparam (__SYS_pthread+25)
# define SYS_pthread_setschedprio (__SYS_pthread+26)
# define SYS_pthread_setspecific (__SYS_pthread+27)
# define SYS_pthread_testcancel (__SYS_pthread+28)
# define SYS_pthread_yield (__SYS_pthread+29)
# define SYS_pthread_setschedparam (__SYS_pthread+24)
# define SYS_pthread_setschedprio (__SYS_pthread+25)
# define SYS_pthread_setspecific (__SYS_pthread+26)
# define SYS_pthread_yield (__SYS_pthread+27)
# ifdef CONFIG_CANCELLATION_POINTS
# define SYS_pthread_setcanceltype (__SYS_pthread+28)
# define SYS_pthread_testcancel (__SYS_pthread+29)
# define __SYS_pthread_smp (__SYS_pthread+30)
# else
# define __SYS_pthread_smp (__SYS_pthread+28)
# endif
# ifdef CONFIG_SMP
# define SYS_pthread_setaffinity_np (__SYS_pthread+30)
# define SYS_pthread_getaffinity_np (__SYS_pthread+31)
# define __SYS_pthread_signals (__SYS_pthread+32)
# define SYS_pthread_setaffinity_np (__SYS_pthread_smp+0)
# define SYS_pthread_getaffinity_np (__SYS_pthread_smp+1)
# define __SYS_pthread_signals (__SYS_pthread_smp+2)
# else
# define __SYS_pthread_signals (__SYS_pthread+30)
# define __SYS_pthread_signals __SYS_pthread_smp
# endif
# ifndef CONFIG_DISABLE_SIGNALS