Skip to content

Commit

Permalink
Fixing scoped_thread and return from failed new_task
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Nov 13, 2019
1 parent 2087f8c commit 202b6ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/apex/apex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ void start(std::shared_ptr<task_wrapper> tt_ptr) {
#endif
if (tt_ptr == nullptr) {
APEX_UTIL_REF_COUNT_APEX_INTERNAL_START
tt_ptr->prof = nullptr;
return;
}
// if APEX is disabled, do nothing.
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/C++/apex_pthread_flood.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ typedef void*(*start_routine_t)(void*);

void* someThread(void* tmp)
{
apex::scoped_thread("threadTest thread");
apex::scoped_thread mythread("threadTest thread");
unsigned long * result = (unsigned long *)tmp;
int i = 0;
unsigned long total = 0;
Expand Down

0 comments on commit 202b6ef

Please sign in to comment.