ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
|
Last change
on this file since 0e76cf4f was 0e76cf4f, checked in by Thierry Delisle <tdelisle@…>, 9 years ago |
|
Updated the makefile for concurrency
|
-
Property mode
set to
100644
|
|
File size:
138 bytes
|
| Line | |
|---|
| 1 | #include "threads"
|
|---|
| 2 |
|
|---|
| 3 | forall(dtype T | coroutine_t(T))
|
|---|
| 4 | void suspend(T* cor) {
|
|---|
| 5 |
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | forall(dtype T | coroutine_t(T))
|
|---|
| 9 | void resume(T* cor) {
|
|---|
| 10 |
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.