summaryrefslogtreecommitdiff
path: root/PACE
diff options
context:
space:
mode:
authorluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-08-22 00:48:13 +0000
committerluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-08-22 00:48:13 +0000
commitc6dc304d604dfe2e61c746eb10b5c7375637e483 (patch)
tree524eb86bbf8603f7bb53e05991fd4581b55f2600 /PACE
parentbd3c16dbcb2f03bbc72738f3dd5cd2649c17ba2c (diff)
downloadATCD-c6dc304d604dfe2e61c746eb10b5c7375637e483.tar.gz
Mon Aug 21 19:40:23 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE')
-rw-r--r--PACE/ChangeLog6
-rw-r--r--PACE/pace/win32/pthread.c20
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 */