<div dir="ltr"><div>Hi Phil,</div><div><br></div><div>OpenThreads is just written to support threads, there is no option for building without threads.  You'd need to add this yourself.<br></div><div><br></div><div>Cheers,<br></div><div>Robert.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 26 Mar 2020 at 11:35, OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
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.<br>
<br>
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.<br>
<br>
I’ve looked through the OpenThreads CMakeLists, but it’s not obvious to me how to configure without any threading support at all.<br>
<br>
Any advice?<br>
<br>
Kind regards,<br>
Phil<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>