mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (ruby_threadptr_data_type): rename to hide.
[ruby-core:38972] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb40b39a2f
commit
0dee7247a7
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 16 18:56:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm.c (ruby_threadptr_data_type): rename to hide.
|
||||||
|
[ruby-core:38972]
|
||||||
|
|
||||||
Tue Aug 16 18:52:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 16 18:52:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
|
* win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
|
||||||
|
|
4
vm.c
4
vm.c
|
@ -1786,8 +1786,8 @@ thread_memsize(const void *ptr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define thread_data_type ruby_thread_data_type
|
#define thread_data_type ruby_threadptr_data_type
|
||||||
const rb_data_type_t ruby_thread_data_type = {
|
const rb_data_type_t ruby_threadptr_data_type = {
|
||||||
"VM/thread",
|
"VM/thread",
|
||||||
{
|
{
|
||||||
rb_thread_mark,
|
rb_thread_mark,
|
||||||
|
|
|
@ -350,10 +350,10 @@ typedef struct rb_block_struct {
|
||||||
VALUE proc;
|
VALUE proc;
|
||||||
} rb_block_t;
|
} rb_block_t;
|
||||||
|
|
||||||
extern const rb_data_type_t ruby_thread_data_type;
|
extern const rb_data_type_t ruby_threadptr_data_type;
|
||||||
|
|
||||||
#define GetThreadPtr(obj, ptr) \
|
#define GetThreadPtr(obj, ptr) \
|
||||||
TypedData_Get_Struct((obj), rb_thread_t, &ruby_thread_data_type, (ptr))
|
TypedData_Get_Struct((obj), rb_thread_t, &ruby_threadptr_data_type, (ptr))
|
||||||
|
|
||||||
enum rb_thread_status {
|
enum rb_thread_status {
|
||||||
THREAD_TO_KILL,
|
THREAD_TO_KILL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue