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
+4
View File
@@ -48,6 +48,10 @@ CSRCS += pthread_mutexattr_getpshared.c pthread_mutexattr_setpshared.c
CSRCS += pthread_mutexattr_setprotocol.c pthread_mutexattr_getprotocol.c
CSRCS += pthread_mutexattr_settype.c pthread_mutexattr_gettype.c
ifneq ($(CONFIG_CANCELLATION_POINTS),y)
CSRCS += pthread_setcanceltype.c pthread_testcancel.c
endif
ifeq ($(CONFIG_SMP),y)
CSRCS += pthread_attr_getaffinity.c pthread_attr_setaffinity.c
endif