summaryrefslogtreecommitdiff
path: root/PACE
diff options
context:
space:
mode:
authorluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-26 08:44:51 +0000
committerluther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-26 08:44:51 +0000
commitde0bc1f3d6d816e85d68b0dc29e8c2211a5fb692 (patch)
treefd84f4380eb28d43775d84cf14c1b45c00e0f6db /PACE
parent70ae6c82bd52158533411dd283ab572c27755b71 (diff)
downloadATCD-de0bc1f3d6d816e85d68b0dc29e8c2211a5fb692.tar.gz
Thu Oct 26 03:45:00 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE')
-rw-r--r--PACE/ChangeLog22
-rw-r--r--PACE/pace/win32/pthread.c14
-rw-r--r--PACE/pace/win32/schedtypes.h2
3 files changed, 23 insertions, 15 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog
index 729b99c8526..d658c200d5c 100644
--- a/PACE/ChangeLog
+++ b/PACE/ChangeLog
@@ -1,13 +1,21 @@
+Thu Oct 26 04:00:00 2000 Luther J Baker <luther@cs.wustl.edu>
+
+ * pace/win32/schedtypes.h:
+ * pace/win32/sched.h:
+
+ Compliance with ACE_HAS_PACE for ACE.
+ sched_param now has a member sched_priority.
+
Wed Oct 18 15:41:20 2000 Luther J Baker <luther@cs.wustl.edu>
- * pace/win32/pthread.h:
- * pace/win32/pthreadtypes.h:
- * pace/semphore.h:
- * pace/win32/semphore.h:
- * pace/win32/semphore.inl:
+ * pace/win32/pthread.h:
+ * pace/win32/pthreadtypes.h:
+ * pace/semphore.h:
+ * pace/win32/semphore.h:
+ * pace/win32/semphore.inl:
- Debugging ACE building with PACE over NT
- ACE_HAS_PACE.
+ Debugging ACE building with PACE over NT
+ ACE_HAS_PACE.
Tue Oct 3 15:37:35 2000 Joe Hoffert <joeh@cs.wustl.edu>
diff --git a/PACE/pace/win32/pthread.c b/PACE/pace/win32/pthread.c
index e3fd0f706fe..790add37a53 100644
--- a/PACE/pace/win32/pthread.c
+++ b/PACE/pace/win32/pthread.c
@@ -32,7 +32,7 @@ pthread_create (pace_pthread_t * thread,
void * arg)
{
unsigned flags = 0x0, thr_addr = 0x0;
- if (attr->sparam_.priority_ != THREAD_PRIORITY_NORMAL)
+ if (attr->sparam_.sched_priority != THREAD_PRIORITY_NORMAL)
{
// CREATE_SUSPENDED is the only flag win32 currently supports
flags = CREATE_SUSPENDED;
@@ -47,7 +47,7 @@ pthread_create (pace_pthread_t * thread,
if (flags == CREATE_SUSPENDED && thread != 0)
{
- SetThreadPriority (thread, attr->sparam_.priority_);
+ SetThreadPriority (thread, attr->sparam_.sched_priority);
ResumeThread (thread);
}
@@ -79,7 +79,7 @@ pthread_getschedparam (pace_pthread_t thread,
{
if (param != (pace_sched_param*)0)
{
- param->priority_ = GetThreadPriority (thread);
+ param->sched_priority = GetThreadPriority (thread);
return 0;
}
/* Invalid pointer to pace_sched_param. */
@@ -92,7 +92,7 @@ pthread_getschedparam (pace_pthread_t thread,
int policy,
const pace_sched_param * param)
{
- if (SetThreadPriority (thread, param->priority_))
+ if (SetThreadPriority (thread, param->sched_priority))
{
return 0;
}
@@ -117,7 +117,7 @@ pthread_attr_init (pace_pthread_attr_t * attr)
attr->init_ = 1;
attr->detach_state_ = 0;
attr->policy_ = 0;
- attr->sparam_.priority_ = 0;
+ attr->sparam_.sched_priority = 0;
attr->inherit_sched_ = 0;
attr->contention_scope_ = 0;
attr->guard_size_ = 0;
@@ -210,7 +210,7 @@ pthread_attr_getschedparam (const pace_pthread_attr_t * attr,
{
if (attr->init_ == 1)
{
- param->priority_ = attr->sparam_.priority_;
+ param->sched_priority = attr->sparam_.sched_priority;
return 0;
}
/* ERROR: not initilalized properly! */
@@ -225,7 +225,7 @@ pthread_attr_setschedparam (pace_pthread_attr_t * attr,
{
if (attr->init_ == 1)
{
- attr->sparam_.priority_ = param->priority_;
+ attr->sparam_.sched_priority = param->sched_priority;
return 0;
}
/* ERROR: not initilalized properly! */
diff --git a/PACE/pace/win32/schedtypes.h b/PACE/pace/win32/schedtypes.h
index 0aaa61d57a1..b3358e0c5db 100644
--- a/PACE/pace/win32/schedtypes.h
+++ b/PACE/pace/win32/schedtypes.h
@@ -56,7 +56,7 @@ extern "C" {
#define PACE_SCHED_PARAM 1
typedef struct sched_param
{
- int priority_;
+ int sched_priority;
} pace_sched_param;
#endif