Skip to content

Commit b33ea38

Browse files
author
nagai
committed
* ruby.h: define is_ruby_native_thread() for no native thread environment
* eval.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 340a511 commit b33ea38

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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+
18
Thu Nov 20 12:42:47 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
29

310
* configure.in: always check existence of the pthread library

eval.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,11 +1159,16 @@ void Init_ext _((void));
11591159

11601160
#ifdef HAVE_NATIVETHREAD
11611161
static rb_nativethread_t ruby_thid;
1162+
#endif
1163+
11621164
int
11631165
is_ruby_native_thread() {
1166+
#ifdef HAVE_NATIVETHREAD
11641167
return NATIVETHREAD_EQUAL(ruby_thid, NATIVETHREAD_CURRENT());
1165-
}
1168+
#else
1169+
return 1;
11661170
#endif
1171+
}
11671172

11681173
void
11691174
ruby_init()

ruby.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,7 @@ typedef DWORD rb_nativethread_t;
682682
# define NATIVETHREAD_EQUAL(t1,t2) ((t1) == (t2))
683683
# define HAVE_NATIVETHREAD
684684
#endif
685-
#ifdef HAVE_NATIVETHREAD
686685
RUBY_EXTERN int is_ruby_native_thread();
687-
#endif
688686

689687
#if defined(__cplusplus)
690688
} /* extern "C" { */

0 commit comments

Comments
 (0)