diff options
author | rpj <rpj> | 1998-07-12 15:55:40 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-12 15:55:40 +0000 |
commit | 4896eb26a6c8fc24e8d12a180f3a10027abb4127 (patch) | |
tree | eb759d5b67445d99ff27759d87cece5e0437e269 /create.c | |
parent | 81fc28d29a37bf2906025a5648e92a6503479e97 (diff) |
See the ChangeLog.
Diffstat (limited to 'create.c')
-rw-r--r-- | create.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -20,13 +20,8 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr, Map attributes as correctly as possible. */ HANDLE handle; - - /* FIXME: I don't have doco on attributes so these aren't - included yet. Threads will be started with Win32 defaults: - unsuspended and with default stack size. - */ - DWORD flags = 0; - DWORD stack = 0; + DWORD flags = 0; /* Always 0 for POSIX threads */ + DWORD stack = PTHREAD_STACK_MIN; LPSECURITY_ATTRIBUTES security = NULL; /* FIXME: This needs to be moved into process space. @@ -48,6 +43,8 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr, break; default: /* Map attributes */ + if (attr->stacksize != NULL) + stack = (DWORD) attr->stacksize; break; } @@ -65,3 +62,4 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr, pthread_threads_count++; return 0; } + |