Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Nov 29, 2024
1 parent 2886bf5 commit d582779
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/C/src/patterns/Pipeline.lf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Pipeline pattern where a periodic source feeds a chain of reactors that can all execute in
* parallel at each logical time step. This example shows how a deadline can interfere with
* parallelism if the GEDF_NP scheduler is used. The target parameter `scheduler` overrides
* the default scheduler to use the NP scheduler, which results in fully parallel execution.
* parallelism if the GEDF_NP scheduler is used. The target parameter `scheduler` overrides the
* default scheduler to use the NP scheduler, which results in fully parallel execution.
*
* @author Edward A. Lee
*/
target C {
target C {
scheduler: NP,
timeout: 1 sec
}
Expand All @@ -15,9 +15,7 @@ import SendCount, Receive from "lib/SendersAndReceivers.lf"
import TakeTime from "lib/TakeTime.lf"

reactor Deadline extends TakeTime {
reaction(in) {=
=} deadline (100 ms) {=
=}
reaction(in) {= =} deadline(100 ms) {= =}
}

federated reactor {
Expand Down

0 comments on commit d582779

Please sign in to comment.