yarv-diff:396
From: ko1 atdot.net
Date: 3 Oct 2006 20:12:07 +0900
Subject: [yarv-diff:396] r563 - branches/parallel
Author: ko1
Date: 2006-10-03 20:12:07 +0900 (Tue, 03 Oct 2006)
New Revision: 563
Added:
branches/parallel/thread.h
Modified:
branches/parallel/ChangeLog
branches/parallel/eval_thread.c
branches/parallel/st.h
branches/parallel/yarvcore.h
Log:
* thread.h : added
* yarvcore.h : incldue thread.h
* st.h : ditto
* eval_thread.c : remove rb_thread_pending global variable
Modified: branches/parallel/ChangeLog
===================================================================
--- branches/parallel/ChangeLog 2006-09-10 13:55:30 UTC (rev 562)
+++ branches/parallel/ChangeLog 2006-10-03 11:12:07 UTC (rev 563)
@@ -4,6 +4,17 @@
# from Mon, 03 May 2004 01:24:19 +0900
#
+2006-10-03(Tue) 20:10:19 +0900 Koichi Sasada <ko1 atdot.net>
+
+ * thread.h : added
+
+ * yarvcore.h : incldue thread.h
+
+ * st.h : ditto
+
+ * eval_thread.c : remove rb_thread_pending global variable
+
+
2006-09-10(Sun) 22:51:58 +0900 Koichi Sasada <ko1 atdot.net>
* ChangeLog : fix typo
Modified: branches/parallel/eval_thread.c
===================================================================
--- branches/parallel/eval_thread.c 2006-09-10 13:55:30 UTC (rev 562)
+++ branches/parallel/eval_thread.c 2006-10-03 11:12:07 UTC (rev 563)
@@ -79,8 +79,6 @@
#endif
#endif
-int rb_thread_pending = 0;
-
VALUE rb_cThread;
extern VALUE rb_last_status;
Modified: branches/parallel/st.h
===================================================================
--- branches/parallel/st.h 2006-09-10 13:55:30 UTC (rev 562)
+++ branches/parallel/st.h 2006-10-03 11:12:07 UTC (rev 563)
@@ -16,7 +16,7 @@
int (*hash) ();
};
-#include "thread_pthread.h"
+#include "thread.h"
struct st_table {
struct st_hash_type *type;
Added: branches/parallel/thread.h
===================================================================
--- branches/parallel/thread.h 2006-09-10 13:55:30 UTC (rev 562)
+++ branches/parallel/thread.h 2006-10-03 11:12:07 UTC (rev 563)
@@ -0,0 +1,13 @@
+
+#ifndef THREAD_H_INCLUDED
+#define THREAD_H_INCLUDED
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+#include "thread_win32.h"
+#elif defined(HAVE_PTHREAD_H)
+#include "thread_pthread.h"
+#else
+#error "unsupported thread type"
+#endif
+
+#endif /* THREAD_H_INCLUDED */
Modified: branches/parallel/yarvcore.h
===================================================================
--- branches/parallel/yarvcore.h 2006-09-10 13:55:30 UTC (rev 562)
+++ branches/parallel/yarvcore.h 2006-10-03 11:12:07 UTC (rev 563)
@@ -9,28 +9,16 @@
#define YARV_THREAD_MODEL 3
#include <setjmp.h>
+#include <signal.h>
-#if 0 && defined(HAVE_GETCONTEXT) && defined(HAVE_SETCONTEXT)
-#include <ucontext.h>
-#define USE_CONTEXT
-#endif
#include "ruby.h"
#include "st.h"
#include "re.h"
#include "debug.h"
#include "vm_opts.h"
+#include "thread.h"
-#if defined(_WIN32) || defined(__CYGWIN__)
-#include "thread_win32.h"
-#elif defined(HAVE_PTHREAD_H)
-#include "thread_pthread.h"
-#else
-#error "unsupported thread type"
-#endif
-
-#include <signal.h>
-
#ifndef NSIG
# ifdef DJGPP
# define NSIG SIGMAX
@@ -91,8 +79,6 @@
#define GCDEBUG 0
-
-
/* classes and modules */
extern VALUE mYarvCore;
extern VALUE cYarvISeq;
@@ -498,7 +484,7 @@
char *node_name(int node);
-/* each thread has this size stack : 2MB */
+/* each thread has this size stack */
#define YARV_THREAD_STACK_SIZE (128 * 1024)
@@ -624,10 +610,6 @@
NOINLINE(void yarv_save_machine_context(yarv_thread_t *));
-
-
-extern int rb_thread_pending;
-
void yarv_thread_execute_interrupts(yarv_thread_t *);
void rb_thread_gc_barrier_stop(yarv_thread_t *th);
void rb_thread_gc_barrier_start(yarv_thread_t *th);
--
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml