# suspend() and resume(INT, ERR)

Matthew Sanderson (m.sanderson@bohm.anu.edu.au)
Wed, 5 Feb 1997 07:17:55 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    As far as I can see, by testing, supplying a second arg of type ERR to
    resume() results in the call to suspend in the task being resumed _raising_
    that error, instead of _returning_ it.

    1) Can some documentation of this feature please be added to the
    programmers' manual's description of resume() - atm there's only a comment
    that describes this in tasks.h, which isn't exactly obvious/sufficient
    IMHO.

    2) Why is this so? If we do resume(taskid, "fred"), why doesn't the call to
    suspend() _raise_ "fred" instead of _returning_ it, too? What's so special
    about TYPE_ERR? Consistency...

    --Matthew.

    Matthew Sanderson
    m.sanderson@student.anu.edu.au
    The Australian National University, Canberra.

    ===========================================================================
    "Computers in the future may weigh no more than 1.5 tons."
         --Popular Mechanics, forecasting the relentless march of science, 1949
    ===========================================================================