* vm.c (ruby_thread_data_type): add prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cae6eed6b1
commit
0958923530
@ -1,3 +1,7 @@
|
|||||||
|
Sat Feb 5 02:08:37 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm.c (ruby_thread_data_type): add prefix.
|
||||||
|
|
||||||
Sat Feb 5 00:59:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Sat Feb 5 00:59:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* vm_core.h (GetThreadPtr): use TypedData_Get_Struct() instead
|
* vm_core.h (GetThreadPtr): use TypedData_Get_Struct() instead
|
||||||
|
3
vm.c
3
vm.c
@ -1756,7 +1756,8 @@ thread_memsize(const void *ptr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rb_data_type_t thread_data_type = {
|
#define thread_data_type ruby_thread_data_type
|
||||||
|
const rb_data_type_t ruby_thread_data_type = {
|
||||||
"VM/thread",
|
"VM/thread",
|
||||||
{
|
{
|
||||||
rb_thread_mark,
|
rb_thread_mark,
|
||||||
|
@ -347,10 +347,10 @@ typedef struct rb_block_struct {
|
|||||||
VALUE proc;
|
VALUE proc;
|
||||||
} rb_block_t;
|
} rb_block_t;
|
||||||
|
|
||||||
extern const rb_data_type_t thread_data_type;
|
extern const rb_data_type_t ruby_thread_data_type;
|
||||||
|
|
||||||
#define GetThreadPtr(obj, ptr) \
|
#define GetThreadPtr(obj, ptr) \
|
||||||
TypedData_Get_Struct((obj), rb_thread_t, &thread_data_type, (ptr))
|
TypedData_Get_Struct((obj), rb_thread_t, &ruby_thread_data_type, (ptr))
|
||||||
|
|
||||||
enum rb_thread_status {
|
enum rb_thread_status {
|
||||||
THREAD_TO_KILL,
|
THREAD_TO_KILL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user