thread.c: rb_thread_fd_close [ci skip]
* thread.c (rb_thread_fd_close): re-define only for abi-check, abort if called. [ruby-core:80078] [Bug #13304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c279ac3615
commit
c617568c53
@ -424,7 +424,7 @@ void rb_exec_end_proc(void);
|
|||||||
void rb_thread_schedule(void);
|
void rb_thread_schedule(void);
|
||||||
void rb_thread_wait_fd(int);
|
void rb_thread_wait_fd(int);
|
||||||
int rb_thread_fd_writable(int);
|
int rb_thread_fd_writable(int);
|
||||||
void rb_thread_fd_close(int);
|
DEPRECATED(void rb_thread_fd_close(int));
|
||||||
int rb_thread_alone(void);
|
int rb_thread_alone(void);
|
||||||
void rb_thread_sleep(int);
|
void rb_thread_sleep(int);
|
||||||
void rb_thread_sleep_forever(void);
|
void rb_thread_sleep_forever(void);
|
||||||
|
10
thread.c
10
thread.c
@ -2197,6 +2197,16 @@ rb_notify_fd_close(int fd)
|
|||||||
return busy;
|
return busy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
rb_thread_fd_close(int fd)
|
||||||
|
{
|
||||||
|
#ifdef DONT_USE
|
||||||
|
while (rb_notify_fd_close(fd));
|
||||||
|
#else
|
||||||
|
DEPRECATED_INTERNAL_FEATURE("rb_thread_fd_close");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* thr.raise
|
* thr.raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user