File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
1
+ Thu Nov 20 13:37:34 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2
+
3
+ * ruby.h: define is_ruby_native_thread() for no native thread
4
+ environment
5
+
6
+ * eval.c: ditto
7
+
1
8
Thu Nov 20 12:42:47 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2
9
3
10
* configure.in: always check existence of the pthread library
Original file line number Diff line number Diff line change @@ -1159,11 +1159,16 @@ void Init_ext _((void));
1159
1159
1160
1160
#ifdef HAVE_NATIVETHREAD
1161
1161
static rb_nativethread_t ruby_thid ;
1162
+ #endif
1163
+
1162
1164
int
1163
1165
is_ruby_native_thread () {
1166
+ #ifdef HAVE_NATIVETHREAD
1164
1167
return NATIVETHREAD_EQUAL (ruby_thid , NATIVETHREAD_CURRENT ());
1165
- }
1168
+ #else
1169
+ return 1 ;
1166
1170
#endif
1171
+ }
1167
1172
1168
1173
void
1169
1174
ruby_init ()
Original file line number Diff line number Diff line change @@ -682,9 +682,7 @@ typedef DWORD rb_nativethread_t;
682
682
# define NATIVETHREAD_EQUAL (t1 ,t2 ) ((t1) == (t2))
683
683
# define HAVE_NATIVETHREAD
684
684
#endif
685
- #ifdef HAVE_NATIVETHREAD
686
685
RUBY_EXTERN int is_ruby_native_thread ();
687
- #endif
688
686
689
687
#if defined(__cplusplus )
690
688
} /* extern "C" { */
You can’t perform that action at this time.
0 commit comments