Changes between Version 40 and Version 41 of LightweightConcurrency
- Timestamp:
- 05/18/12 10:11:12 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LightweightConcurrency
v40 v41 138 138 == Building Concurrency Primitives == 139 139 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. 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. Notice that the type signatures are similar to their counterparts in Control.Concurrent. 141 141 142 142 {{{ 143 143 ------ Helper Definitions ------ 144 144 getSSA = getScheduleSContAction 145 145 setSSA = setScheduleSContAction
