Coroutine pending_increment does not halt execution of coroutine
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Reproduce el comportamiento de la coroutine en la REPL usando el ejemplo y la configuración de UE4 4.22. Sigue pending_increment a través de la lista de pendientes de SkMind e inspecciona cómo m_pending_count afecta a la ejecución; el trabajo estará terminado cuando c1 se detenga después del incremento y reanude su ejecución después de pending_decrement, coincidiendo con la salida esperada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 138
- Forks
- 22
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de EpicSkookumScript/SkookumScript-Plugin
-
Clarify Plugin InstallationAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
EpicSkookumScript/SkookumScript-Plugin#50 · 5 comentarios ·
-
Is the plugin alive?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
EpicSkookumScript/SkookumScript-Plugin#47 · 7 comentarios ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Feature to Stop debuggingAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de EpicSkookumScript/SkookumScript-Plugin
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
`IO.FS.realPath` reports every failure as `noFileOrDirectory` instead of classifying by `errno`Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
leanprover/lean4#15683 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
touhouworldcup/thprac#414 ·