diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-16 21:28:14 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-16 21:28:14 +0000 |
commit | ddd69785aaf0ff4eb806893ae4d5c1a722075b01 (patch) | |
tree | 236cc69e4a4d19b210a3d4924d44670ffb7efbd0 | |
parent | f301f584921426cae39b7926a28fd51f028f0069 (diff) | |
download | ATCD-ddd69785aaf0ff4eb806893ae4d5c1a722075b01.tar.gz |
Wed Aug 16 16:26:32 2000 Luther J Baker <luther@cs.wustl.edu>
-rw-r--r-- | PACE/ChangeLog | 8 | ||||
-rw-r--r-- | PACE/pace/win32/pthread.c | 144 | ||||
-rw-r--r-- | PACE/pace/win32/pthread.h | 51 | ||||
-rw-r--r-- | PACE/pace/win32/pthread.inl | 548 |
4 files changed, 211 insertions, 540 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index c882d106370..6bf2750736d 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,11 @@ +Wed Aug 16 16:26:32 2000 Luther J Baker <luther@cs.wustl.edu> + + * pace/win32/pthread.h: + * pace/win32/pthread.inl: + * pace/win32/pthread.c: + + The first commit in a long series of emulations. + Mon Aug 14 22:24:50 2000 Luther J Baker <luther@cs.wustl.edu> * pace/win32/sched.inl (pace_sched_get_priority_max): diff --git a/PACE/pace/win32/pthread.c b/PACE/pace/win32/pthread.c index 45aeed44967..4aa9f5315ff 100644 --- a/PACE/pace/win32/pthread.c +++ b/PACE/pace/win32/pthread.c @@ -18,3 +18,147 @@ #if !defined (PACE_HAS_INLINE) # include "pace/win32/pthread.inl" #endif /* ! PACE_HAS_INLINE */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_destroy (pace_pthread_attr_t * attr) +{ + if (attr->init_ == 1) + { + attr->init_ = 0; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_init (pace_pthread_attr_t * attr) +{ + if (attr->init_ == 1) + { + /* ERROR: not initilalized properly! */ + return -1; + } + attr->init_ = 1; + return 0; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setdetachstate (pace_pthread_attr_t * attr, + int detachstate) +{ + if (attr->init_ == 1) + { + attr->detach_state_ = detachstate; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setinheritsched (pace_pthread_attr_t * attr, + int inheritsched) +{ + if (attr->init_ == 1) + { + attr->inherit_sched_ = inheritsched; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setschedparam (pace_pthread_attr_t * attr, + const pace_sched_param * param) +{ + if (attr->init_ == 1) + { + attr->sparam_.priority_ = param->priority_; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, + int policy) +{ + if (attr->init_ == 1) + { + attr->policy_ = policy; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setscope (pace_pthread_attr_t * attr, + int contentionscope) +{ + if (attr->init_ == 1) + { + attr->contention_scope_ = contentionscope; + return 0; + } + /* ERROR: not initialized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setstackaddr (pace_pthread_attr_t * attr, + void * stackaddr) +{ + if (attr->init_ == 1) + { + attr->stack_addr_ = stackaddr; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_attr_setstacksize (pace_pthread_attr_t * attr, + size_t stacksize) +{ + if (attr->init_ == 1) + { + attr->stack_size_ = stacksize; + return 0; + } + /* ERROR: not initilalized properly! */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +int +pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + void * (*start_routine) (void*), + void * arg) +{ + /* not working yet .. fill me in */ + return -1; +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/pthread.h b/PACE/pace/win32/pthread.h index b7f04c1c68b..7e79fe84317 100644 --- a/PACE/pace/win32/pthread.h +++ b/PACE/pace/win32/pthread.h @@ -67,6 +67,57 @@ extern "C" { #endif /* PACE_HAS_CPLUPLUS */ +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + /* Returns -1 if attr is invalid! */ + int pthread_attr_destroy (pace_pthread_attr_t * attr); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + /* Returns -1 if attr is already valid! */ + int pthread_attr_init (pace_pthread_attr_t * attr); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setdetachstate (pace_pthread_attr_t * attr, + int detachstate); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setinheritsched (pace_pthread_attr_t * attr, + int inheritsched); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setschedparam (pace_pthread_attr_t * attr, + const pace_sched_param * param); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, + int policy); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setscope (pace_pthread_attr_t * attr, + int contentionscope); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setstackaddr (pace_pthread_attr_t * attr, + void * stackaddr); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_attr_setstacksize (pace_pthread_attr_t * attr, + size_t stacksize); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) + int pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + void * (*start_routine) (void*), + void * arg); +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_CPLUSPLUS) } diff --git a/PACE/pace/win32/pthread.inl b/PACE/pace/win32/pthread.inl index 3f81a7f653d..59cfd944432 100644 --- a/PACE/pace/win32/pthread.inl +++ b/PACE/pace/win32/pthread.inl @@ -34,8 +34,7 @@ PACE_INLINE int pace_pthread_attr_destroy (pace_pthread_attr_t * attr) { - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_destroy (attr); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -128,8 +127,7 @@ PACE_INLINE int pace_pthread_attr_init (pace_pthread_attr_t * attr) { - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_init (attr); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -139,9 +137,7 @@ int pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, int detachstate) { - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (detachstate); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_setdetachstate (attr, detachstate); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -151,9 +147,7 @@ int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, int inheritsched) { - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (inheritsched); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_setinheritsched (attr, inheritsched); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -163,9 +157,7 @@ int pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, const pace_sched_param * param) { - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_setschedparam (attr, param); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -175,9 +167,7 @@ int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, int policy) { - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (policy); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_setschedpolicy (attr, policy); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -187,9 +177,7 @@ int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, int contentionscope) { - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (contentionscope); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); + return pthread_attr_setscope (attr, contentionscope); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -197,524 +185,4 @@ pace_pthread_attr_setscope (pace_pthread_attr_t * attr, PACE_INLINE int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stackaddr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stacksize); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cancel (pace_pthread_t thread) -{ - PACE_UNUSED_ARG (thread); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_broadcast (pace_pthread_cond_t * cond) -{ - PACE_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_destroy (pace_pthread_cond_t * cond) -{ - PACE_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr) -{ - PACE_UNUSED_ARG (cond); - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_signal (pace_pthread_cond_t * cond) -{ - PACE_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_timedwait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const struct timespec * abstime) -{ - PACE_UNUSED_ARG (cond); - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (abstime); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_wait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (cond); - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr) -{ - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_init (pace_pthread_condattr_t * attr) -{ - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg) -{ - PACE_UNUSED_ARG (thread); - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (start_routine); - PACE_UNUSED_ARG (arg); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_detach (pace_pthread_t thread) -{ - PACE_UNUSED_ARG (thread); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_equal (pace_pthread_t t1, pace_pthread_t t2) -{ - PACE_UNUSED_ARG (t1); - PACE_UNUSED_ARG (t2); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_exit (void * value_ptr) -{ - PACE_UNUSED_ARG (value_ptr); - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param) -{ - PACE_UNUSED_ARG (thread); - PACE_UNUSED_ARG (policy); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_pthread_getspecific (pace_pthread_key_t key) -{ - void * retval = (void*)0; - PACE_UNUSED_ARG (key); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_join (pace_pthread_t thread, void ** value_ptr) -{ - PACE_UNUSED_ARG (thread); - PACE_UNUSED_ARG (value_ptr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)) -{ - PACE_UNUSED_ARG (key); - PACE_UNUSED_ARG (destructor); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_key_delete (pace_pthread_key_t key) -{ - PACE_UNUSED_ARG (key); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_kill (pace_pthread_t thread, int sig) -{ - PACE_UNUSED_ARG (thread); - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling) -{ - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, - const pace_pthread_mutexattr_t * attr) -{ - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling) -{ - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_UNUSED_ARG (old_ceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_trylock (pace_pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * attr) -{ - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, - int * protocol) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) -{ - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) (void)) -{ - PACE_UNUSED_ARG (once_control); - PACE_UNUSED_ARG (void_routine); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_pthread_t -pace_pthread_self () -{ - pace_pthread_t retval = (pace_pthread_t)-1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcancelstate (int state, int * oldstate) -{ - PACE_UNUSED_ARG (state); - PACE_UNUSED_ARG (oldstate); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcanceltype (int type, int * oldtype) -{ - PACE_UNUSED_ARG (type); - PACE_UNUSED_ARG (oldtype); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param) -{ - PACE_UNUSED_ARG (thread); - PACE_UNUSED_ARG (policy); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setspecific (pace_pthread_key_t key, const void * value) -{ - PACE_UNUSED_ARG (key); - PACE_UNUSED_ARG (value); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_sigmask (int how, const pace_sigset_t * set, - pace_sigset_t * oset) -{ - PACE_UNUSED_ARG (how); - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (oset); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_testcancel () -{ - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ +
\ No newline at end of file |