Hello,
I've read that push_event is on the TODO list (although the docs seem to
imply it is already implemented). What is the progress on this? I also
read the remark about push_event making sense or not. My answer would be
yes!
My problem is the following: I am monitoring some activity (utilisation
on a multicluster) and want to refresh the screen every 5 seconds
(polling free nodes is not something you want to do every millisecond,
or second for that matter). Now there's no real user input and because
it's running on a shared machine i dont want to use pollEvent cause that
would create a busy waiting loop which hogs too much cpu. I could
introduce a sleep of 5 seconds of course but that would mean my program
will be unresponsive for long periods.
So what i'd like to do is use waitevent and have a seperate thread which
will push a userevent into the queue every 5 secs. (Where did
SDL_AddTimer go by the way?) If you guys dont want to spent any time on
this I would gladly do it myself but I have no experience with Swig, nor
much time to get into it..
Regards,
Wouter
|