csl++ is CSL with the extensions listed on this page. Every CSL program is a csl++ program. csl-pp translates csl++ to vanilla CSL, so the extensions need no support from cslc.
| Syntax |
Meaning |
Page |
async fn f(...) T { ... } |
A function that can suspend. |
Async functions and tasks |
async task t() void { ... } |
A task that can suspend. |
Async functions and tasks |
suspend; |
Ends the current run of the task; the next activation continues after it. |
Async functions and tasks |
fn f(...) max_recursion_depth(N) T |
Bounds the recursion of f for stack sizing. |
Stacks |
fn f(...) stack_size(N) T |
Declares the stack use of f in bytes. |
Stacks |
async and suspend are only keywords in these positions; elsewhere they are ordinary identifiers.
| Builtin |
Change |
Page |
@bind_local_task, @bind_data_task, @bind_control_task |
Can be called at runtime. |
Binding tasks at runtime |