Add mechanism for event driven app to wait efficiently
@zpostfacto ya está trabajando en esto.
Desde el 29/1/2019.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
We've been designing for real-time apps that "tick" on a relatively high frequency, and that will poll for messages at this interval.
We should provide a mechanism for apps that don't fit this model, e.g. the more traditional event-driven server model where you select()/poll() and then wake up and process the event immediately.
I think the simplest way to do this is to provide a config parameter that specifies a callback when a new message arrives. The intention would be that the app would use some mechanism (e.g. set an event on windows) to wake up their other thread that is actually going to do the work. I'm worried that somebody will actually try to process the message in the callback, and that would probably be bad. If necessary, we could put these callbacks on another thread, so that they cannot shoot themselves in the foot by doing dumb stuff.
- Lenguaje dominante
- C++
- Estrellas
- 10k
- Forks
- 750
- Merge medio
- 5 d 19 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 ValveSoftware/GameNetworkingSockets
-
Native ICE TURN failover fails when the servers use different credentialsPosiblemente ocupada @PerryLink la tomó hace 1 día. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 66/100
-
Native ICE resolves STUN/TURN hostnames under the global lockPosiblemente ocupada @tintinhamans la tomó hace 15 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
WebRTC ICE keeps an idle thread per STUN/TURN hostname lookupPosiblemente ocupada @tintinhamans la tomó hace 15 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
ValveSoftware/GameNetworkingSockets#439 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ValveSoftware/GameNetworkingSockets#425 · 7 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
Todos los issues de ValveSoftware/GameNetworkingSockets
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
objectionary/eo-graphs#80 ·
-
bug C/C++ code
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
webarkit/WebARKitLib#85 ·
Los mantenedores suelen responder en 1 día
-
SD Card Size correctionAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
[request] vsg/1.1.16Abiertoupstream update
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
conan-io/conan-center-index#31142 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100