<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Thanks for information!
<br>the problem is I only can find vtkMultiThreader.cxx under "common",
there are many "#ifdef ....." there, so what you suggest is use #defines
..... in my code or directly in VTK's source code ?? Thanks a lot!
<br>
<br>
<p>Praveen Bhaniramka wrote:
<blockquote TYPE=CITE>Hi Berk and Song,
<p>The reason for these problems is probably that VTK uses sproc for the
<br>multi-threading (see common/vtkMultiThreading.cxx) on SGIs. As far
as I
<br>know, on IRIX, pthreads are implemented using sproc in such a way that
<br>they do not work with sprocs properly. So if your application uses
<br>pthreads, you should disable the use of sproc and use pthreads instead.
<p>I haven't looked at the vtkMultiThreading source much, but it seems
that
<br>there are #defines for VTK_USE_SPROC and VTK_USE_PTHREADS which you
could
<br>use to make the appropriate changes.
<p>HTH,
<br>Praveen
<p>On Mon, 4 Feb 2002, Berk Geveci wrote:
<p>> Even with Irix 6.5, there have been issues with pthreads.
<br>> Random crashes and such. Whenever we compile on SGIs, we
<br>> disable pthread support.
<br>>
<br>> -Berk
<br>>
<br>> >From: Song Li <lisong@vrac.iastate.edu>
<br>> >Reply-To: lisong@vrac.iastate.edu
<br>> >To: vtkusers@public.kitware.com
<br>> >Subject: [vtkusers] problem with POSIX threads
<br>> >Date: Mon, 04 Feb 2002 15:14:34 -0600
<br>> >
<br>> >Hi, gurus,
<br>> > my program use VTK and other software libraries
on SGI platform, it
<br>> >works fine when I use libraries with sproc mode, but after I switch
to
<br>> >use POSIX-mode library, the program can not work, I doubt that VTK
cause
<br>> >the problem, anybody can tell me if VTK can also support these two
modes
<br>> >and how to switch between them ??(Makefile available??)
<br>> > Thanks a lot!
<br>> >
<br>> >--
<br>> >Song Li
<br>> >VRAC(Virtual Reality Application Center),Iowa State University
<br>> >Email: lisong@vrac.iastate.edu
<br>> >Homepage: <a href="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</a>
<br>> >
<br>> >
<br>>
<br>>
<br>>
<br>> _________________________________________________________________
<br>> Get your FREE download of MSN Explorer at <a href="http://explorer.msn.com/intl.asp">http://explorer.msn.com/intl.asp</a>.
<br>>
<br>> _______________________________________________
<br>> This is the private VTK discussion list.
<br>> Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>> Follow this link to subscribe/unsubscribe:
<br>> <a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a>
<br>>
<p>-------------------------------------------------------------------
<br>Praveen Bhaniramka
Member of Technical Staff (MTS)
<br>praveenb@sgi.com
Advanced Graphics Division
<br>(650)933-1785
Silicon Graphics, Inc.
<br>-------------------------------------------------------------------</blockquote>
<pre>--
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: <A HREF="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</A></pre>
</html>