diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index e1eb3c49e257b66c17b8cfa66bbf314f042ce4bd..1e36b4697adb87fb451c01c78dcba415bc678e4c 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -65,6 +65,17 @@ pthread_mutex_t sdl_keylock; sem_t sdl_key_pending; static unsigned int sdl_pending_mousekeys=0; +/* + * TODO: + * The intent of this was a copy of current vstat that + * does not require vstatlock to be held. + * + * Unfortunately, this is accessed from multiple threads + * currently (at least main and video events), so it + * requires *a* lock, and vstatlock is used for that purpose. + * This should either have its own lock, or be used *only* + * from a single thread. + */ static struct video_stats cvstat; struct sdl_keyvals {