File tree 2 files changed +7
-10
lines changed
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,10 @@ void preloop_update_frequency() {
88
88
#endif
89
89
}
90
90
91
- extern " C" void __esp_yield_within_cont () {
92
- cont_yield (g_pcont);
93
- }
94
-
95
- extern " C" void esp_yield_within_cont () __attribute__ ((weak, alias(" __esp_yield_within_cont" )));
96
-
91
+ extern " C" void esp_yield () __attribute__((weak));
97
92
extern " C" void esp_yield () {
98
93
if (cont_can_yield (g_pcont)) {
99
- esp_yield_within_cont ( );
94
+ cont_yield (g_pcont );
100
95
}
101
96
}
102
97
@@ -108,7 +103,7 @@ extern "C" void esp_schedule() {
108
103
extern " C" void __yield () {
109
104
if (cont_can_yield (g_pcont)) {
110
105
esp_schedule ();
111
- esp_yield_within_cont ();
106
+ esp_yield ();
112
107
}
113
108
else {
114
109
panic ();
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ extern "C" void esp_loop()
12
12
run_scheduled_functions ();
13
13
run_scheduled_recurrent_functions ();}
14
14
15
- extern " C" void esp_yield_within_cont ()
15
+ extern " C" void esp_yield ()
16
16
{
17
- cont_yield (g_pcont);
17
+ if (cont_can_yield (g_pcont)) {
18
+ cont_yield (g_pcont);
19
+ }
18
20
run_scheduled_recurrent_functions ();
19
21
}
20
22
You can’t perform that action at this time.
0 commit comments