MCPcopy Index your code
hub / github.com/processing/processing / releaseInterrupt

Method releaseInterrupt

java/libraries/io/src/processing/io/GPIO.java:415–431  ·  view source on GitHub ↗

Stops listening for interrupts on an input pin @param pin GPIO pin @see attachInterrupt @see noInterrupts @see interrupts @webref

(int pin)

Source from the content-addressed store, hash-verified

413 * @webref
414 */
415 public static void releaseInterrupt(int pin) {
416 Thread t = irqThreads.get(pin);
417 if (t == null) {
418 return;
419 }
420
421 t.interrupt();
422 try {
423 t.join();
424 } catch (InterruptedException e) {
425 System.err.println("Error joining thread in releaseInterrupt: " + e.getMessage());
426 }
427 t = null;
428 irqThreads.remove(pin);
429
430 disableInterrupt(pin);
431 }
432
433
434 /**

Callers

nothing calls this directly

Calls 6

disableInterruptMethod · 0.95
getMethod · 0.65
getMessageMethod · 0.65
joinMethod · 0.45
printlnMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected