Project

General

Profile

Design #1086

New design for interrupt mechanism

Added by John Abbott over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Improving
Target version:
Start date:
30 Jun 2017
Due date:
% Done:

100%

Estimated time:
11.11 h
Spent time:

Description

The current desgn for interrupt mechanism is not ideal when CoCoALib is called from other libraries.

Try to make a better design.


Related issues

Related to CoCoALib - Feature #638: Time limit: let user specify time limit for a computationClosed2014-10-27

Related to CoCoALib - Bug #1458: Redesign interrupt mechanism?Rejected2020-05-10

History

#1 Updated by John Abbott over 6 years ago

The function SignalInterruptsCoCoA just overwrites any previously registered signal handler.

A better design might be use a "scoped object" for registering and later deregistering the signal handler.
This should make CoCoALib collaborate more nicely with other libraries.

#2 Updated by John Abbott over 6 years ago

  • Status changed from New to Feedback
  • Assignee set to John Abbott
  • % Done changed from 0 to 90

I have changed the implementation considerably (with simplifying consequences for GlobalManager and the interpreter (Main.C and C5.C).
Updated also the documentation. Checked in.

Let's test it for a while :-)
Next step is to complete the "timer".

#3 Updated by John Abbott over 6 years ago

  • Related to Feature #638: Time limit: let user specify time limit for a computation added

#4 Updated by John Abbott over 6 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100
  • Estimated time set to 11.11 h

#5 Updated by John Abbott almost 4 years ago

  • Related to Feature #1457: Make SmoothFactor interruptible added

#6 Updated by John Abbott almost 4 years ago

  • Related to deleted (Feature #1457: Make SmoothFactor interruptible)

#7 Updated by John Abbott almost 4 years ago

  • Related to Bug #1458: Redesign interrupt mechanism? added

Also available in: Atom PDF