Skip to content

Commit 3726167

Browse files
committed
eez-framework update
1 parent cbe046e commit 3726167

File tree

10 files changed

+25
-21
lines changed

10 files changed

+25
-21
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"clean-all": "npx rimraf@^3.0.2 build dist node_modules",
1818
"build": "npm run clean-build && npm run build-src && npm run build-css && npm run build-dark-css && npm run build-eez-runtime && npm run build-lvgl-runtime-v8.3 && npm run build-lvgl-runtime-v9.0 && npm run build-lz4 && npm run make-electron-builder-yml",
1919
"build-src": "tsc && node node_modules/gulp-cli/bin/gulp.js release",
20-
"build-css": "node node_modules/less/bin/lessc --clean-css packages/eez-studio-ui/_stylesheets/main.less build/eez-studio-ui/_stylesheets/main.css && npm run build-component-doc-css",
20+
"build-css": "node node_modules/less/bin/lessc packages/eez-studio-ui/_stylesheets/main.less build/eez-studio-ui/_stylesheets/main.css && npm run build-component-doc-css",
2121
"build-dark-css": "node node_modules/less/bin/lessc packages/eez-studio-ui/_stylesheets/main-dark.less build/eez-studio-ui/_stylesheets/main-dark.css",
2222
"build-component-doc-css": "node node_modules/less/bin/lessc --clean-css packages/eez-studio-ui/_stylesheets/component-doc-light.less build/eez-studio-ui/_stylesheets/component-doc.css",
2323
"build-eez-runtime": "run-script-os",

packages/project-editor/build/helper.ts

+10
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,14 @@ export class Build {
6161
text(text: string) {
6262
this.result += text;
6363
}
64+
65+
blockStart(line: string) {
66+
this.line(line);
67+
this.indent();
68+
}
69+
70+
blockEnd(line: string) {
71+
this.unindent();
72+
this.line(line);
73+
}
6474
}

packages/project-editor/flow/runtime/eez_runtime.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.

resources/eez-framework-amalgamation/eez-flow.cpp

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Autogenerated on November 27, 2024 11:49:28 AM from eez-framework commit 4b8ceca59dc6b0b34fefb219390e79e89c719da2 */
1+
/* Autogenerated on December 3, 2024 1:49:44 PM from eez-framework commit 4d56ee77aa136e9b1b8bdb4c66ce286aece09938 */
22
/*
33
* eez-framework
44
*
@@ -6844,8 +6844,8 @@ void tick() {
68446844
return;
68456845
}
68466846
uint32_t startTickCount = millis();
6847-
auto n = getQueueSize();
6848-
for (size_t i = 0; i < n || g_numContinuousTaskInQueue > 0; i++) {
6847+
auto queueSizeAtTickStart = getQueueSize();
6848+
for (size_t i = 0; i < queueSizeAtTickStart || g_numNonContinuousTaskInQueue > 0; i++) {
68496849
FlowState *flowState;
68506850
unsigned componentIndex;
68516851
bool continuousTask;
@@ -6861,11 +6861,7 @@ void tick() {
68616861
deallocateComponentExecutionState(flowState, componentIndex);
68626862
} else {
68636863
if (continuousTask) {
6864-
auto componentExecutionState = (ComponenentExecutionState *)flowState->componenentExecutionStates[componentIndex];
6865-
if (!componentExecutionState) {
6866-
executeComponent(flowState, componentIndex);
6867-
} else if (componentExecutionState->lastExecutedTime + FLOW_TICK_MAX_DURATION_MS <= startTickCount) {
6868-
componentExecutionState->lastExecutedTime = startTickCount;
6864+
if (i < queueSizeAtTickStart) {
68696865
executeComponent(flowState, componentIndex);
68706866
} else {
68716867
addToQueue(flowState, componentIndex, -1, -1, -1, true);
@@ -10690,13 +10686,13 @@ static unsigned g_queueHead;
1069010686
static unsigned g_queueTail;
1069110687
static unsigned g_queueMax;
1069210688
static bool g_queueIsFull = false;
10693-
unsigned g_numContinuousTaskInQueue;
10689+
unsigned g_numNonContinuousTaskInQueue;
1069410690
void queueReset() {
1069510691
g_queueHead = 0;
1069610692
g_queueTail = 0;
1069710693
g_queueMax = 0;
1069810694
g_queueIsFull = false;
10699-
g_numContinuousTaskInQueue = 0;
10695+
g_numNonContinuousTaskInQueue = 0;
1070010696
}
1070110697
size_t getQueueSize() {
1070210698
if (g_queueHead == g_queueTail) {
@@ -10728,7 +10724,7 @@ bool addToQueue(FlowState *flowState, unsigned componentIndex, int sourceCompone
1072810724
size_t queueSize = getQueueSize();
1072910725
g_queueMax = g_queueMax < queueSize ? queueSize : g_queueMax;
1073010726
if (!continuousTask) {
10731-
++g_numContinuousTaskInQueue;
10727+
++g_numNonContinuousTaskInQueue;
1073210728
onAddToQueue(flowState, sourceComponentIndex, sourceOutputIndex, componentIndex, targetInputIndex);
1073310729
}
1073410730
incRefCounterForFlowState(flowState);
@@ -10750,7 +10746,7 @@ void removeNextTaskFromQueue() {
1075010746
g_queueHead = (g_queueHead + 1) % QUEUE_SIZE;
1075110747
g_queueIsFull = false;
1075210748
if (!continuousTask) {
10753-
--g_numContinuousTaskInQueue;
10749+
--g_numNonContinuousTaskInQueue;
1075410750
onRemoveFromQueue();
1075510751
}
1075610752
}

resources/eez-framework-amalgamation/eez-flow.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Autogenerated on November 27, 2024 11:49:28 AM from eez-framework commit 4b8ceca59dc6b0b34fefb219390e79e89c719da2 */
1+
/* Autogenerated on December 3, 2024 1:49:44 PM from eez-framework commit 4d56ee77aa136e9b1b8bdb4c66ce286aece09938 */
22
/*
33
* eez-framework
44
*
@@ -2297,8 +2297,6 @@ static const int NULL_VALUE_INDEX = 1;
22972297
component->type == defs_v3::COMPONENT_TYPE_WATCH_VARIABLE_ACTION \
22982298
)
22992299
struct ComponenentExecutionState {
2300-
uint32_t lastExecutedTime;
2301-
ComponenentExecutionState() : lastExecutedTime(millis()) {}
23022300
virtual ~ComponenentExecutionState() {}
23032301
};
23042302
struct CatchErrorComponenentExecutionState : public ComponenentExecutionState {
@@ -2716,7 +2714,7 @@ namespace flow {
27162714
void queueReset();
27172715
size_t getQueueSize();
27182716
size_t getMaxQueueSize();
2719-
extern unsigned g_numContinuousTaskInQueue;
2717+
extern unsigned g_numNonContinuousTaskInQueue;
27202718
bool addToQueue(FlowState *flowState, unsigned componentIndex,
27212719
int sourceComponentIndex, int sourceOutputIndex, int targetInputIndex,
27222720
bool continuousTask);

0 commit comments

Comments
 (0)