[osg-users] Building for platform without threads?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Mar 26 04:43:54 PDT 2020


Hi Phil,

OpenThreads is just written to support threads, there is no option for
building without threads.  You'd need to add this yourself.

Cheers,
Robert.

On Thu, 26 Mar 2020 at 11:35, OpenSceneGraph Users <
osg-users at lists.openscenegraph.org> wrote:

> Hi all,
>
> I’ve been working on an (improved) port of OSG to WebAssembly, and have a
> question for the experts :-) So far, my port runs well when built with
> threading support, but some browser implementations currently disable some
> of the threading support, so I need to have an alternative port which does
> not attempt to use threads at all.
>
> What I’m curious about is how to configure the OpenThreads build (or
> whether it is advisable and/or possible to not involve OpenThreads at all)
> when building OSG. The WebAssembly compiler doesn’t hide the pthreads
> support in the headers when building single threaded, but doesn’t link
> against the pthreads library, so my current attempts to build
> single-threaded fail at link time.
>
> I’ve looked through the OpenThreads CMakeLists, but it’s not obvious to me
> how to configure without any threading support at all.
>
> Any advice?
>
> Kind regards,
> Phil
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200326/d8dc901a/attachment.html>


More information about the osg-users mailing list