Skip to content

Commit

Permalink
fixed thread init bug for non-multithreaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jjwilke committed Oct 30, 2017
1 parent 56c20c2 commit 6052b28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions autogen.sh
2 changes: 1 addition & 1 deletion sstmac/software/process/operating_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ operating_system::init_threading(sprockit::sim_parameters* params)
active_os_.resize(nthread());
}
lock.unlock();
#endif

//make sure to stash the thread ID in some thread-local storage
void* stack = thread_info::get_current_stack();
thread_info::set_thread_id(stack, threadId());
#endif

des_context_ = thread_context::factory::get_optional_param(
"context", thread_context::default_threading(), params);
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile.skeleton_tests
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test_skeleton_boxml.$(CHKSUF): boxml
-p node.app1.boxml_eventfiles=$(top_srcdir)/skeletons/boxml/example/test-mlmg-4-4.xml

test_skeleton_%.$(CHKSUF): %
$(PYRUNTEST) 8 $(top_srcdir) $@ Exact \
$(PYRUNTEST) 30 $(top_srcdir) $@ Exact \
./skeletons/$*/run$* -f $(top_srcdir)/skeletons/$*/parameters.ini --no-wall-time

test_skeleton_CoMD.$(CHKSUF): CoMD pots
Expand Down

0 comments on commit 6052b28

Please sign in to comment.