Changes between Version 24 and Version 25 of LightweightConcurrency


Ignore:
Timestamp:
May 17, 2012 10:40:33 PM (3 years ago)
Author:
kc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LightweightConcurrency

    v24 v25  
    7272}}} 
    7373 
    74 The type of the transaction that contains switchTo is PTM string, but the value returned when the current SCont resumes execution (after switchTo) is a (). Our solution is to make switchTo return a `error "Attempting to use return value of a switched transaction"`, and any attempt to use the return value throws a runtime error. 
     74The type of the transaction that contains switchTo is PTM string, and atomically performing the transaction is expected to return a String value. But the value returned when the current SCont resumes execution (after switchTo) is a (). Our solution is to make switchTo return a `error "Attempting to use return value of a switched transaction"`, and any attempt to use the return value throws a runtime error. 
    7575 
    7676Of course, care must be taken to ensure that the control does not switch to an SCont that is either running or completed.