Re: [sdljava-users] EventManager: using pollEvent() instead of waitEvent() ?
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-10-16 21:05:06
|
Yes it sounds like pollEvent() would be better here. The only problem is that it will eat much or all of the CPU in the loop unless we sleep some between calls. Perhaps a configurable param? -Ivan/ Patric Rufflar wrote: > Hello List, > > I am currently having problems stopping the EventManager thread in > some cases. It seems that the native call to waitEvent() cannot be > interrupted by calling interrupt() of the thread. > > I think using pollEvent() would be better here (because it is already > an own thread) and will fix some problems. > > What do you think about it? > > Best Regards > Patric > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users |