Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] exiting


Chronological Thread 
  • From: "Steven G. Parker" <sparker@cs.utah.edu>
  • To: Abe Stephens <abe@sci.utah.edu>
  • Cc: "'manta@sci.utah.edu'" <manta@sci.utah.edu>
  • Subject: Re: [MANTA] exiting
  • Date: Sun, 19 Jun 2005 16:31:54 -0600

If you want to exit immediate, call Thread::exitAll(). The problem is that exit(0) has ill-defined behavior in a threaded program. Sometimes it exits the thread, sometimes the process. The thread library tries to compensate but may not be doing it correctly.

Steve


On Jun 19, 2005, at 3:47 PM, Abe Stephens wrote:

How do I terminate the manta engine when it is running embedded in another application?

If I call RTRTInterface->finish() I think that it will clean up all of its threads. But if I really want to exit my program on the double and I call exit(0), I get a exception somewhere in SCIRun thread land (likewise with ctrl+c).

What is all of the SCIRun thread magic is really doing?

--Thanks

Abe

p.s. I'm just getting "Camera Bookmarks" working now.. so hopefully anyone will be able to fly the Boeing demo soon.

Christiaan Paul Gribble wrote:


I was under the impression that you just hit 'q' or 'esc' once (or twice to interrupt the rendering loop but exit cleanly)... It seems to work for me; is this causing problems for you?

C

Abe Stephens wrote:


Hey,

What is the correct way to terminate manta without a segfault or a thread backtrace?

--Thanks

Abe











Archive powered by MHonArc 2.6.16.

Top of page