Overview
Comment: | Improve check for pthread_attr_setinheritsched |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7db789ca8d79fd150d55ad3b9d249964 |
User & Date: | js on 2022-12-29 15:06:17 |
Other Links: | manifest | tags |
Context
2022-12-29
| ||
15:12 | Consider TMPDIR for temporary directory IRI check-in: 915d45a586 user: js tags: trunk | |
15:06 | Improve check for pthread_attr_setinheritsched check-in: 7db789ca8d user: js tags: trunk | |
14:58 | configure: Improve test for posix_spawn check-in: 50d586e779 user: js tags: trunk | |
Changes
Modified configure.ac from [45d51860eb] to [1d8ffdf904].
︙ | ︙ | |||
1038 1039 1040 1041 1042 1043 1044 | AC_CHECK_FUNC(sched_yield, [ AC_DEFINE(OF_HAVE_SCHED_YIELD, 1, [Whether we have sched_yield()]) ]) AC_CHECK_FUNCS(pthread_attr_getschedpolicy) | > > > > > > | > > > > > > > > | 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 | AC_CHECK_FUNC(sched_yield, [ AC_DEFINE(OF_HAVE_SCHED_YIELD, 1, [Whether we have sched_yield()]) ]) AC_CHECK_FUNCS(pthread_attr_getschedpolicy) AC_MSG_CHECKING(for pthread_attr_setinheritsched) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([ #include <spawn.h> ], [ pthread_attr_setinheritsched(NULL, 0); ]) ], [ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_PTHREAD_ATTR_SETINHERITSCHED, 1, [Whether we have pthread_attr_setinheritsched]) ], [ AC_MSG_RESULT(no) ]) AC_CHECK_HEADERS(pthread_np.h, [], [], [#include <pthread.h>]) AC_CHECK_FUNCS(pthread_set_name_np pthread_setname_np, break) ;; esac AC_DEFINE(OF_HAVE_THREADS, 1, [Whether we have threads]) |
︙ | ︙ |