Differences From Artifact [7f18dc085f]:
- File
src/threading_pthread.m
— part of check-in
[ffb39d1df6]
at
2015-03-30 21:33:29
on branch trunk
— Add OF_NO_RETURN_FUNC
OF_NO_RETURN_FUNC is defined when __attribute__((__noreturn__)) is
supported for functions, whereas OF_NO_RETURN is only defined when it is
supported for both functions and methods. (user: js, size: 5023) [annotate] [blame] [check-ins using]
To Artifact [5e32541977]:
- File
src/threading_pthread.m
— part of check-in
[60ebb21fc7]
at
2015-04-11 14:37:34
on branch trunk
— threading_pthread.m: Only set stack size if > 0
When initializing a pthread_attr_t on Solaris and reading the stack size
from it with pthread_attr_getstacksize(), the stack size returned it 0.
However, when calling pthread_attr_setstacksize() with a stack size of
0, the call fails. (user: js, size: 5061) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
105 106 107 108 109 110 111 | if (pthread_attr_setinheritsched(&pattr, PTHREAD_EXPLICIT_SCHED) != 0) return false; if (pthread_attr_setschedparam(&pattr, ¶m) != 0) return false; | > | | | > | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | if (pthread_attr_setinheritsched(&pattr, PTHREAD_EXPLICIT_SCHED) != 0) return false; if (pthread_attr_setschedparam(&pattr, ¶m) != 0) return false; if (attr->stackSize > 0) { if (pthread_attr_setstacksize(&pattr, attr->stackSize) != 0) return false; } } if ((ctx = malloc(sizeof(*ctx))) == NULL) return false; ctx->function = function; ctx->object = object; |
︙ | ︙ |