diff options
Diffstat (limited to 'PACE')
-rw-r--r-- | PACE/ChangeLog | 6 | ||||
-rw-r--r-- | PACE/pace/win32/pthread.c | 20 |
2 files changed, 21 insertions, 5 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index 317a91c90e1..9ae50c5724d 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,9 @@ +Mon Aug 21 19:40:23 2000 Luther J Baker <luther@cs.wustl.edu> + + * pace/win32/pthread.c (pthread_attr_init): + + Updated attr initialization in pthread_attr_init. + Fri Aug 18 17:57:42 2000 Steve Huston <shuston@riverace.com> * include/makeinclude/rules.common.GNU: Added section for HP-UX. 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 */ |