[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5176 - GNUnet/src/util/threads
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5176 - GNUnet/src/util/threads |
Date: |
Fri, 29 Jun 2007 01:39:15 -0600 (MDT) |
Author: grothoff
Date: 2007-06-29 01:39:15 -0600 (Fri, 29 Jun 2007)
New Revision: 5176
Modified:
GNUnet/src/util/threads/pthread.c
Log:
pthreads faq says that size should not be required on Linux
Modified: GNUnet/src/util/threads/pthread.c
===================================================================
--- GNUnet/src/util/threads/pthread.c 2007-06-29 07:27:09 UTC (rev 5175)
+++ GNUnet/src/util/threads/pthread.c 2007-06-29 07:39:15 UTC (rev 5176)
@@ -99,18 +99,26 @@
void * arg,
unsigned int stackSize) {
PThread * handle;
+#ifndef LINUX
pthread_attr_t stack_size_custom_attr;
+#endif
int ret;
handle = MALLOC(sizeof(PThread));
#ifdef MINGW
memset(handle, 0, sizeof(PThread));
#endif
+#ifndef LINUX
pthread_attr_init(&stack_size_custom_attr);
pthread_attr_setstacksize(&stack_size_custom_attr,
stackSize);
+#endif
ret = pthread_create(&handle->pt,
+#ifndef LINUX
&stack_size_custom_attr,
+#else
+ NULL,
+#endif
main,
arg);
if (ret != 0) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5176 - GNUnet/src/util/threads,
gnunet <=