Skip to main content

AnimationEngine#destroy() blocks when called from runAnimationLoop()

No replies
fz
Offline
Joined: 2003-06-13
Points: 0

Hello,

In destroy() of AnimationEngine, the caller starts to wait until the state becomes STOPPED.

If it comes from runAnimationLoop(), it won't be notified forever, because the state becomes STOPPED when runAnimationLoop() returns.

The command execution and some notifications from Show to Director are done by runAnimationLoop(), would it be nice to mention this in the javadoc?

It seems to be difficult to prevent destroy() from blocking without changing its semantics...

Please ignore if I am misunderstanding.

Regards,
Takeshi