From d3d605bb90ee63ab962d2c8a1f99ba80ab9e40bd Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 26 Mar 2003 00:01:40 +0000 Subject: [PATCH] * threads.h: replace usage of struct timespect with scm_t_timespec. Replace usage of USE_PTHREAD_THREADS with SCM_USE_PTHREAD_THREADS. Remove typedef for struct timespec in favor of scm_t_timespec from scmconfig.h. --- libguile/threads.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/libguile/threads.h b/libguile/threads.h index f6d34ea18..01035dfd2 100644 --- a/libguile/threads.h +++ b/libguile/threads.h @@ -148,7 +148,7 @@ SCM_API int scm_rec_mutex_lock (scm_t_rec_mutex *m); SCM_API int scm_cond_wait (scm_t_cond *c, scm_t_mutex *m); SCM_API int scm_cond_timedwait (scm_t_cond *c, scm_t_mutex *m, - const struct timespec *t); + const scm_t_timespec *t); #define scm_cond_signal scm_i_plugin_cond_signal #define scm_cond_broadcast scm_i_plugin_cond_broadcast @@ -248,7 +248,7 @@ SCM_API SCM scm_thread_exited_p (SCM thread); SCM_API scm_root_state *scm_i_thread_root (SCM thread); -#ifdef USE_PTHREAD_THREADS +#ifdef SCM_USE_PTHREAD_THREADS #include "libguile/pthread-threads.h" #else #include "libguile/null-threads.h" @@ -265,16 +265,6 @@ extern scm_t_key scm_i_thread_key; extern scm_t_key scm_i_root_state_key; SCM_API void scm_i_set_thread_data (void *); -#ifndef HAVE_STRUCT_TIMESPEC -/* POSIX.4 structure for a time value. This is like a `struct timeval' but - has nanoseconds instead of microseconds. */ -struct timespec -{ - long int tv_sec; /* Seconds. */ - long int tv_nsec; /* Nanoseconds. */ -}; -#endif - #endif /* SCM_THREADS_H */ /*