Project

General

Profile

Design #1086

New design for interrupt mechanism

Added by John Abbott 10 months ago. Updated 5 months 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

History

#1 Updated by John Abbott 10 months 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 10 months 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 10 months ago

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

#4 Updated by John Abbott 5 months ago

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

Also available in: Atom PDF