summaryrefslogtreecommitdiff
path: root/thread_pthread.ci
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 06:37:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 06:37:46 +0000
commit9c574383a430c815406fb343e9adba18e348b5a3 (patch)
tree4c4a826810bfa165017a86b763bc716e24195981 /thread_pthread.ci
parent522f948a0ce5caaf3a44c06045a439c190d8f861 (diff)
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h: fix typo (rb_thead_t -> rb_thread_t). * eval_intern.h: remove unused definitions. * common.mk: fix around vm_opts.h path and remove harmful argument passed to insns2vm.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
-rw-r--r--thread_pthread.ci40
1 files changed, 20 insertions, 20 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci
index 3b84429284..2adde8a5b2 100644
--- a/thread_pthread.ci
+++ b/thread_pthread.ci
@@ -21,8 +21,8 @@
#define native_cleanup_pop pthread_cleanup_pop
#define native_thread_yield() sched_yield()
-static void yarv_add_signal_thread_list(rb_thead_t *th);
-static void yarv_remove_signal_thread_list(rb_thead_t *th);
+static void yarv_add_signal_thread_list(rb_thread_t *th);
+static void yarv_remove_signal_thread_list(rb_thread_t *th);
static rb_thread_lock_t signal_thread_list_lock;
@@ -40,7 +40,7 @@ Init_native_thread()
}
NOINLINE(static int
- thread_start_func_2(rb_thead_t *th, VALUE *stack_start));
+ thread_start_func_2(rb_thread_t *th, VALUE *stack_start));
void static thread_cleanup_func(void *th_ptr);
#define USE_THREAD_CACHE 0
@@ -52,7 +52,7 @@ thread_start_func_1(void *th_ptr)
thread_start:
#endif
{
- rb_thead_t *th = th_ptr;
+ rb_thread_t *th = th_ptr;
VALUE stack_start;
/* ignore self and klass */
@@ -68,8 +68,8 @@ thread_start_func_1(void *th_ptr)
#if USE_THREAD_CACHE
if (1) {
/* cache thread */
- rb_thead_t *th;
- static rb_thead_t *register_cached_thread_and_wait(void);
+ rb_thread_t *th;
+ static rb_thread_t *register_cached_thread_and_wait(void);
if ((th = register_cached_thread_and_wait()) != 0) {
th_ptr = (void *)th;
th->thread_id = pthread_self();
@@ -83,7 +83,7 @@ thread_start_func_1(void *th_ptr)
void rb_thread_create_control_thread(void);
struct cached_thread_entry {
- volatile rb_thead_t **th_area;
+ volatile rb_thread_t **th_area;
pthread_cond_t *cond;
struct cached_thread_entry *next;
};
@@ -93,11 +93,11 @@ struct cached_thread_entry {
static pthread_mutex_t thread_cache_lock = PTHREAD_MUTEX_INITIALIZER;
struct cached_thread_entry *cached_thread_root;
-static rb_thead_t *
+static rb_thread_t *
register_cached_thread_and_wait(void)
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
- volatile rb_thead_t *th_area = 0;
+ volatile rb_thread_t *th_area = 0;
struct cached_thread_entry *entry =
(struct cached_thread_entry *)malloc(sizeof(struct cached_thread_entry));
@@ -140,12 +140,12 @@ register_cached_thread_and_wait(void)
}
pthread_mutex_unlock(&thread_cache_lock);
- return (rb_thead_t *)th_area;
+ return (rb_thread_t *)th_area;
}
#endif
static int
-use_cached_thread(rb_thead_t *th)
+use_cached_thread(rb_thread_t *th)
{
int result = 0;
#if USE_THREAD_CACHE
@@ -171,7 +171,7 @@ use_cached_thread(rb_thead_t *th)
}
static int
-native_thread_create(rb_thead_t *th)
+native_thread_create(rb_thread_t *th)
{
int err = 0;
@@ -216,7 +216,7 @@ native_thread_join(pthread_t th)
}
static void
-native_thread_apply_priority(rb_thead_t *th)
+native_thread_apply_priority(rb_thread_t *th)
{
struct sched_param sp;
int policy;
@@ -238,14 +238,14 @@ native_thread_apply_priority(rb_thead_t *th)
}
static void
-interrupt_using_pthread_cond_signal(rb_thead_t *th)
+interrupt_using_pthread_cond_signal(rb_thread_t *th)
{
thread_debug("interrupt_using_pthread_cond_signal (%p)\n", th);
pthread_cond_signal(&th->native_thread_data.sleep_cond);
}
static void
-native_thread_send_interrupt_signal(rb_thead_t *th)
+native_thread_send_interrupt_signal(rb_thread_t *th)
{
thread_debug("native_thread_send_interrupt_signal (%p)\n", th->thread_id);
if (th) {
@@ -254,7 +254,7 @@ native_thread_send_interrupt_signal(rb_thead_t *th)
}
static void
-native_sleep(rb_thead_t *th, struct timeval *tv)
+native_sleep(rb_thread_t *th, struct timeval *tv)
{
int prev_status = th->status;
struct timespec ts;
@@ -309,13 +309,13 @@ native_sleep(rb_thead_t *th, struct timeval *tv)
}
static void
-native_thread_interrupt(rb_thead_t *th)
+native_thread_interrupt(rb_thread_t *th)
{
yarv_add_signal_thread_list(th);
}
struct yarv_signal_thread_list {
- rb_thead_t *th;
+ rb_thread_t *th;
struct yarv_signal_thread_list *prev;
struct yarv_signal_thread_list *next;
};
@@ -348,7 +348,7 @@ print_signal_list(char *str)
#endif
static void
-yarv_add_signal_thread_list(rb_thead_t *th)
+yarv_add_signal_thread_list(rb_thread_t *th)
{
if (!th->native_thread_data.signal_thread_list) {
FGLOCK(&signal_thread_list_lock, {
@@ -374,7 +374,7 @@ yarv_add_signal_thread_list(rb_thead_t *th)
}
static void
-yarv_remove_signal_thread_list(rb_thead_t *th)
+yarv_remove_signal_thread_list(rb_thread_t *th)
{
if (th->native_thread_data.signal_thread_list) {
FGLOCK(&signal_thread_list_lock, {