Skip to content

Commit

Permalink
Remove unused main_thread parameter from Thread::create.
Browse files Browse the repository at this point in the history
  • Loading branch information
southerngs committed Feb 10, 2014
1 parent b7e379b commit fe110b6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion vm/agent.cpp
Expand Up @@ -444,7 +444,7 @@ namespace rubinius {

vm_ = state->shared().new_vm();
exit_ = false;
thread_.set(Thread::create(state, vm_, G(thread), query_agent_tramp, false, true));
thread_.set(Thread::create(state, vm_, G(thread), query_agent_tramp, true));
run(state);
}

Expand Down
2 changes: 1 addition & 1 deletion vm/builtin/thread.cpp
Expand Up @@ -46,7 +46,7 @@ namespace rubinius {
}

Thread* Thread::create(STATE, VM* target, Object* self, Run runner,
bool main_thread, bool system_thread)
bool system_thread)
{
Thread* thr = state->vm()->new_object_mature<Thread>(G(thread));

Expand Down
2 changes: 1 addition & 1 deletion vm/builtin/thread.hpp
Expand Up @@ -287,7 +287,7 @@ namespace rubinius {
* @see Thread::allocate().
*/
static Thread* create(STATE, VM* target, Object* self, Run runner,
bool main_thread = false, bool system_thread = false);
bool system_thread = false);

int start_new_thread(STATE, const pthread_attr_t &attrs);
static void* in_new_thread(void*);
Expand Down
2 changes: 1 addition & 1 deletion vm/gc/finalize.cpp
Expand Up @@ -126,7 +126,7 @@ namespace rubinius {
self_ = state->shared().new_vm();
paused_ = false;
exit_ = false;
thread_.set(Thread::create(state, self_, G(thread), finalizer_handler_tramp, false, true));
thread_.set(Thread::create(state, self_, G(thread), finalizer_handler_tramp, true));
run(state);
}

Expand Down
2 changes: 1 addition & 1 deletion vm/gc/immix_marker.cpp
Expand Up @@ -52,7 +52,7 @@ namespace rubinius {
self_ = state->shared().new_vm();
paused_ = false;
exit_ = false;
thread_.set(Thread::create(state, self_, G(thread), immix_marker_tramp, false, true));
thread_.set(Thread::create(state, self_, G(thread), immix_marker_tramp, true));
run(state);
}

Expand Down
2 changes: 1 addition & 1 deletion vm/signal.cpp
Expand Up @@ -69,7 +69,7 @@ namespace rubinius {
self_ = state->shared().new_vm();
paused_ = false;
exit_ = false;
thread_.set(Thread::create(state, self_, G(thread), signal_handler_tramp, false, true));
thread_.set(Thread::create(state, self_, G(thread), signal_handler_tramp, true));
run(state);
}

Expand Down
2 changes: 1 addition & 1 deletion vm/vm.cpp
Expand Up @@ -134,7 +134,7 @@ namespace rubinius {

// Setup the main Thread, which is wrapper of the main native thread
// when the VM boots.
thread.set(Thread::create(&state, this, G(thread), 0, true), &globals().roots);
thread.set(Thread::create(&state, this, G(thread), 0), &globals().roots);
thread->alive(&state, cTrue);
thread->sleep(&state, cFalse);

Expand Down

0 comments on commit fe110b6

Please sign in to comment.