Jump to content

Linux shared library threading


Tom Young

Recommended Posts

I have a standalone application under Linux created by building a shared library from Labview and linking it with a C++ program.

The Labview VI has two while loops that run in parallel. They work fine in Labview and if I link my exported library against liblvrt.so, with execution switching between the loops regularly. However, if I tick the "embedded runtime box" and link against liblvrtdark.so (the version for applications with no display) then execution starts in one loop, skips to the other after one iteration and then stays in the second loop for ever, despite various time delay VI calls (wait ms, wait until ms multiple, time delay) which are supposed to yield control of the CPU.

Does the dark library support multi-threaded code? The app spawns 10 threads, although only two actually seem to be active. I'm using liblvrtdark.so.8.2.1.

Any ideas?

Tom

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.