Skip to content

Commit

Permalink
Pass threadData from runtime function
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17579 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 7, 2013
1 parent db8dbf8 commit b70897a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/runtime/Dynload_omc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ extern void* DynLoad_executeFunction(int _inFuncHandle, void* _inValLst, int _in
return retarg;
}

extern void* omc_Absyn_pathString2(void*,void*);
extern void* omc_Absyn_pathString2(threadData_t*,void*,void*);
static const char* path_to_name(void* path, char del)
{
threadData_t *threadData = (threadData_t *) pthread_getspecific(mmc_thread_data_key);
char delStr[2] = {del,'\0'};
return MMC_STRINGDATA(omc_Absyn_pathString2(path, mmc_mk_scon(delStr)));
return MMC_STRINGDATA(omc_Absyn_pathString2(threadData, path, mmc_mk_scon(delStr)));
}

}

0 comments on commit b70897a

Please sign in to comment.