Changes between Version 40 and Version 41 of LightweightConcurrency


Ignore:
Timestamp:
May 18, 2012 5:11:12 PM (2 years ago)
Author:
kc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LightweightConcurrency

    v40 v41  
    138138== Building Concurrency Primitives == 
    139139 
    140 Now that we have defined an abstract interface, lets look at how to construct concurrency primitives using the scheduler actions. The implementation of primitives `yield` and `forkIO` using the scheduler actions is shown below. 
     140Now that we have defined an abstract interface, lets look at how to construct concurrency primitives using the scheduler actions. The implementation of primitives `yield` and `forkIO` using the scheduler actions is shown below. Notice that the type signatures are similar to their counterparts in Control.Concurrent. 
    141141 
    142142{{{ 
    143  
     143------ Helper Definitions ------ 
    144144getSSA = getScheduleSContAction 
    145145setSSA = setScheduleSContAction