| Summary: | Race condition between SDL_PushEvent and SDL_SetEventFilter. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rainer Deyke <rainerd> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann, sezeroz, sylvain.becker |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Rainer Deyke
2013-08-07 11:43:49 UTC
How does the race condition manifest in your program? SDL_PushEvent() is not really thread-safe but SDL_PeepEvents() should be. If user events need to be added from another thread then SDL_PeepEvents() can be used (it does not access the filters and gestures). Was fixed here: https://hg.libsdl.org/SDL/rev/6d17410edb75 |