diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-22 00:48:13 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-22 00:48:13 +0000 |
commit | c6dc304d604dfe2e61c746eb10b5c7375637e483 (patch) | |
tree | 524eb86bbf8603f7bb53e05991fd4581b55f2600 /PACE/pace | |
parent | bd3c16dbcb2f03bbc72738f3dd5cd2649c17ba2c (diff) | |
download | ATCD-c6dc304d604dfe2e61c746eb10b5c7375637e483.tar.gz |
Mon Aug 21 19:40:23 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE/pace')
-rw-r--r-- | PACE/pace/win32/pthread.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/PACE/pace/win32/pthread.c b/PACE/pace/win32/pthread.c index 1e5d19c94b5..06a4ad3d64d 100644 --- a/PACE/pace/win32/pthread.c +++ b/PACE/pace/win32/pthread.c @@ -37,12 +37,22 @@ pthread_attr_destroy (pace_pthread_attr_t * attr) int pthread_attr_init (pace_pthread_attr_t * attr) { - if (attr->init_ == 1) - { - /* ERROR: not initilalized properly! */ - return -1; - } + /* These need to be the platform defaults! + * Since I made this, I need to maintain this invariant! + * Eventually, #define 'words' would be better than + * constants here! */ + attr->init_ = 1; + attr->detach_state_ = 0; + attr->policy_ = 0; + attr->sparam_.priority_ = 0; + attr->inherit_sched_ = 0; + attr->contention_scope_ = 0; + attr->guard_size_ = 0; + attr->stackaddr_set_ = 0; + attr->stack_addr_ = (void*)0; + attr->stack_size_ = 0; + return 0; } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ |