Coroutine pending_increment does not halt execution of coroutine
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Riproduci il comportamento della coroutine nella REPL usando l’esempio e la configurazione di UE4 4.22. Segui pending_increment attraverso l’elenco dei pending di SkMind e verifica in che modo m_pending_count influisce sull’esecuzione; il lavoro è completato quando c1 si arresta dopo l’incremento e riprende dopo pending_decrement, corrispondendo all’output previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue by error454
Wednesday Jul 03, 2019 at 03:02 GMT
Originally opened as https://github.com/SkookumScript/SkookumScript-Plugin/issues/7
UE4 Version
4.22
SkookumScript Version
4.22
Describe the bug
Calling pending_increment does not suspend a running coroutine as the documentation alludes to.
// Increments the number of expressions / tasks currently executing in
// parallel that the invoked object is waiting for a return value from.
// If the number was 0 and is increased then the invoked object will be
// suspended until the pending number is reduced back to 0 by calling
// pending_decrement().
To Reproduce
Run the following sample code in the REPL
// Coroutine suspend test
!x : 0
!y : 0
!f : (Integer in)[in += 1]
!c1 : branch[loop[f(x) _wait(1.0)]]
!c2 : branch[loop[f(y) _wait(1.0)]]
race
[
loop
[
println(x, ".", y)
_wait(1.0)
]
[
_wait(2)
c1.pending_increment(1)
_wait(1)
c1.pending_decrement
_wait(10)
]
]
// Expected Output:
// 0.0
// 1.1
// 1.2
// 2.3
// ...
Expected behavior
After calling c1.pending_increment(1) the c1 coroutine should stop running until I call c1.pending_decrement.
Additional context
I've done some debugging around this. When I break on the call to c1.pending_increment, I see that c1 already has an m_pending_count of 1, which means the coroutine is already on the SkMind's pending list. I simply don't see any glue that stops execution of the coroutine once it is on that list.
- Lingua principale
- C++
- Stelle
- 138
- Fork
- 22
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di EpicSkookumScript/SkookumScript-Plugin
-
Clarify Plugin Installation Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
EpicSkookumScript/SkookumScript-Plugin#50 · 5 commenti ·
-
Is the plugin alive? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
EpicSkookumScript/SkookumScript-Plugin#47 · 7 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Feature to Stop debugging Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di EpicSkookumScript/SkookumScript-Plugin
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ros2/message_filters#338 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
subsurface/subsurface#4984 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·