Re: [sdljava-users] push_event / user_event
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-04-29 02:00:06
|
I will implement this soon then. Let me have a look. I don't think it will be too difficult. -Ivan/ Wouter wrote: > 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 > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |