Skip to content

Commit

Permalink
Remove threads target properties from templates. How come this was no…
Browse files Browse the repository at this point in the history
…t caught in other branches?
  • Loading branch information
lhstrh committed Mar 11, 2022
1 parent 20016e4 commit ce506ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* This has no audio output, but just tests the ncurses interface.
*/
target C {
threads: 2,
cmake-include: [
"include/ncurses-cmake-extension.txt", // Adds support for ncurses
"/lib/c/reactor-c/util/sensor_simulator.cmake"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* transport the input to the output. Four of them are
* instantiated. Note that without parallel execution, there is
* no way this program can keep up with real time since in every
* 200 msec cycle it has 800 msec of work to do. Given 4 threads,
* 200 msec cycle it has 800 msec of work to do. Given 4 workers,
* however, this program can complete 800 msec of work in about
* 225 msec.
*/
target C {
timeout: 2 sec,
threads: 1, // Change to 4 to see speed up.
workers: 1, // Change to 4 to see speed up.
};
reactor Source {
timer t(0, 200 msec);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
* a chain of reactors that can all execute in parallel
* at each logical time step.
*
* The threads argument specifies the number of worker
* threads, which enables the reactors in the chain to
* The workers argument specifies the number of worker
* workers, which enables the reactors in the chain to
* execute on multiple cores simultaneously.
*
* This uses the TakeTime reactor to perform computation.
* If you reduce the number of worker threads to 1, the
* If you reduce the number of worker workers to 1, the
* execution time will be approximately four times as long.
*
* @author Edward A. Lee
* @author Marten Lohstroh
*/
target C {
threads: 4,
workers: 4,
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* @author Marten Lohstroh
*/
target C {
threads: 1,
keepalive: true
};
/**
Expand Down

0 comments on commit ce506ff

Please sign in to comment.