-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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