mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Rename scm_i_thread to scm_thread
* libguile/scm.h (struct scm_thread, scm_thread): Rename from scm_i_thread. * libguile/deprecated.h (scm_i_thread): Add deprecated typedef. * libguile/threads.h: Adapt to renaming. * libguile/intrinsics.h: * libguile/scmsigs.h: * libguile/cache-internal.h: Remove threads.h includes; unnecessary with the forward decl. * libguile/continuations.h: * libguile/gc-inline.h: * libguile/async.h: Adapt scm_thread type name change. * libguile/async.c: * libguile/continuations.c: * libguile/control.c: * libguile/dynstack.c: * libguile/dynwind.c: * libguile/eval.c: * libguile/finalizers.c: * libguile/fluids.c: * libguile/gc.c: * libguile/intrinsics.c: * libguile/load.c: * libguile/memoize.c: * libguile/print.c: * libguile/read.c: * libguile/scmsigs.c: * libguile/script.c: * libguile/stackchk.c: * libguile/stacks.c: * libguile/symbols.c: * libguile/threads.c: * libguile/throw.c: * libguile/vm-engine.c: * libguile/vm.c: Adapt to type name change, and add additional includes as needed.
This commit is contained in:
parent
51e35158ba
commit
5804c977d7
32 changed files with 124 additions and 115 deletions
|
@ -48,8 +48,8 @@ SCM_API scm_t_bits scm_tc16_condvar;
|
|||
|
||||
struct scm_thread_wake_data;
|
||||
|
||||
struct scm_i_thread {
|
||||
struct scm_i_thread *next_thread;
|
||||
struct scm_thread {
|
||||
struct scm_thread *next_thread;
|
||||
|
||||
SCM handle;
|
||||
scm_i_pthread_t pthread;
|
||||
|
@ -108,7 +108,7 @@ struct scm_i_thread {
|
|||
};
|
||||
|
||||
#define SCM_I_IS_THREAD(x) SCM_SMOB_PREDICATE (scm_tc16_thread, x)
|
||||
#define SCM_I_THREAD_DATA(x) ((scm_i_thread *) SCM_SMOB_DATA (x))
|
||||
#define SCM_I_THREAD_DATA(x) ((scm_thread *) SCM_SMOB_DATA (x))
|
||||
|
||||
#define SCM_VALIDATE_THREAD(pos, a) \
|
||||
scm_assert_smob_type (scm_tc16_thread, (a))
|
||||
|
@ -171,13 +171,13 @@ SCM_INTERNAL scm_i_pthread_key_t scm_i_thread_key;
|
|||
|
||||
# ifdef SCM_HAVE_THREAD_STORAGE_CLASS
|
||||
|
||||
SCM_INTERNAL SCM_THREAD_LOCAL scm_i_thread *scm_i_current_thread;
|
||||
SCM_INTERNAL SCM_THREAD_LOCAL scm_thread *scm_i_current_thread;
|
||||
# define SCM_I_CURRENT_THREAD (scm_i_current_thread)
|
||||
|
||||
# else /* !SCM_HAVE_THREAD_STORAGE_CLASS */
|
||||
|
||||
# define SCM_I_CURRENT_THREAD \
|
||||
((scm_i_thread *) scm_i_pthread_getspecific (scm_i_thread_key))
|
||||
((scm_thread *) scm_i_pthread_getspecific (scm_i_thread_key))
|
||||
|
||||
# endif /* !SCM_HAVE_THREAD_STORAGE_CLASS */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue