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 Martin Sjölund, 5 years ago

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).

comment:2 by Lennart Ochel, 5 years ago

Do we have any documentation for the define OMC_NO_THREADS in our runtime code?

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:4 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.