mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
* 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.
This commit is contained in:
parent
1810dc4e7e
commit
d3d605bb90
1 changed files with 2 additions and 12 deletions
|
@ -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_wait (scm_t_cond *c, scm_t_mutex *m);
|
||||||
SCM_API int scm_cond_timedwait (scm_t_cond *c,
|
SCM_API int scm_cond_timedwait (scm_t_cond *c,
|
||||||
scm_t_mutex *m,
|
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_signal scm_i_plugin_cond_signal
|
||||||
#define scm_cond_broadcast scm_i_plugin_cond_broadcast
|
#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);
|
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"
|
#include "libguile/pthread-threads.h"
|
||||||
#else
|
#else
|
||||||
#include "libguile/null-threads.h"
|
#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;
|
extern scm_t_key scm_i_root_state_key;
|
||||||
SCM_API void scm_i_set_thread_data (void *);
|
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 */
|
#endif /* SCM_THREADS_H */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue