mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_core.h: bit flags
* vm_core.h (rb_vm_struct, rb_thread_struct): make flags bit fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6a10e89b1
commit
093c389390
1 changed files with 5 additions and 5 deletions
10
vm_core.h
10
vm_core.h
|
@ -493,9 +493,9 @@ typedef struct rb_vm_struct {
|
||||||
size_t living_thread_num;
|
size_t living_thread_num;
|
||||||
VALUE thgroup_default;
|
VALUE thgroup_default;
|
||||||
|
|
||||||
int running;
|
unsigned int running: 1;
|
||||||
int thread_abort_on_exception;
|
unsigned int thread_abort_on_exception: 1;
|
||||||
int trace_running;
|
unsigned int trace_running: 1;
|
||||||
volatile int sleeper;
|
volatile int sleeper;
|
||||||
|
|
||||||
/* object management */
|
/* object management */
|
||||||
|
@ -784,8 +784,8 @@ typedef struct rb_thread_struct {
|
||||||
rb_ensure_list_t *ensure_list;
|
rb_ensure_list_t *ensure_list;
|
||||||
|
|
||||||
/* misc */
|
/* misc */
|
||||||
enum method_missing_reason method_missing_reason;
|
enum method_missing_reason method_missing_reason: 8;
|
||||||
int abort_on_exception;
|
unsigned int abort_on_exception: 1;
|
||||||
#ifdef USE_SIGALTSTACK
|
#ifdef USE_SIGALTSTACK
|
||||||
void *altstack;
|
void *altstack;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue