Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Interrupt thread + JNI method call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interrupt thread + JNI method call



Hello!

  I have a code which is executed via SwingWorker and its most time consuming part is a call of a JNI native method (some Scripting Bridge stuff).
  When execution of SwingWorker is interrupted with a call to SwingWorker.cancel(true) method, native code keeps running further until its completion.

  So my question is how to interrupt execution of the native part? Can I receive something similar to InterruptedException in the native code or is there any variable which value can indicate is calling
  thread alive or not?

Thank you!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.