Opened 5 years ago
Last modified 3 years ago
#5965 new defect
Build FMUs with OMC_NO_THREADS
Reported by: | Lennart Ochel | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Run-time | Version: | |
Keywords: | Cc: | m.wenzler@… |
Description
[I report this on behalf of Maik]
Do we have any documentation for the define OMC_NO_THREADS
in our runtime code?
It seems that it is not possible to build FMUs with this option, or at least some pthread functionality doesn't get removed from the code which makes this feature unusable, i.e. pthread_setspecific
.
Change History (5)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Do we have any documentation for the define OMC_NO_THREADS
in our runtime code?
comment:4 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
Note:
See TracTickets
for help on using tickets.
I think this was only used for the Javascript stuff. FMUs need to be threadsafe since people run them in all sorts of weird configurations. The alternative is a global variable, but if you instantiate 2 FMUs you are already screwed.
To do it properly without pthreads, all these variables need to be passed to every single function (generated and in the runtime).