| author | wenzelm | 
| Mon, 01 May 2006 17:05:09 +0200 | |
| changeset 19521 | cfdab6a91332 | 
| parent 18790 | 418131f631fc | 
| permissions | -rw-r--r-- | 
| 18760 | 1 | (* Title: Pure/ML-Systems/smlnj-interrupt-timeout.ML | 
| 2 | ID: $Id$ | |
| 3 | Author: Tjark Weber, Makarius | |
| 4 | Copyright 2006 | |
| 5 | ||
| 6 | Bounded time execution (similar to SML/NJ's TimeLimit structure). | |
| 7 | *) | |
| 8 | ||
| 9 | fun interrupt_timeout time f x = | |
| 10 | TimeLimit.timeLimit time f x | |
| 18790 
418131f631fc
interrupt_timeout now raises Interrupt instead of SML90.Interrupt
 webertj parents: 
18760diff
changeset | 11 | handle TimeLimit.TimeOut => raise Interrupt; |