Skip to content

Thread.suspend produces runtime errors #200

@vishweshjatala

Description

@vishweshjatala

I am trying to use the construct Thread.suspend in my program as:

{Thread.suspend Thread.this}

It produces the following runtime error. Kindly look into the issue.

%***************** Error: illegal field selection ***************
%**
%** In statement: R . suspend = _
%** Expected fields: getPriority getThisPriority injectException is preempt setPriority setThisPriority state terminate this
%** Record value: 'thread'(getPriority:<P/2 Thread.getPriority> getThisPriority:<P/1 GetThisPriority> injectException:<P/2 Thread.injectException> is:<P/2 Thread.is> preempt:<P/1 Thread.preempt> setPriority:<P/2 Thread.setPriority> setThisPriority:<P/1 SetThisPriority> state:<P/2 Thread.state> terminate:<P/1 Thread.terminate> this:<P/1 Thread.this>)
%**
%** Call Stack:
%** toplevel abstraction in line 1, column 0, PC = 50460005

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions