2 Sep 2006 09:00
Re: No time parameter on ORB::perform_work()?
Karel Gardas <kgardas <at> objectsecurity.com>
2006-09-02 07:00:47 GMT
2006-09-02 07:00:47 GMT
Donald, On Thu, 31 Aug 2006, Donald A. Dade wrote: > Hello Sorin, > > Thanks for your reply. > > I intended the question as a MICO related one. I'm aware of all the > systems programming techniques, at least the POSIX ones, don't really > feel good about any of them because they are all hacks by definition, > and was really asking if I was missing something made available by CORBA > itself like the TAO's ORB::perform_work() which accepts a time interval > a la libc's pselect(). I'd like to correct you a bit here. First of all, CORBA itself does not define any parameter for ORB::perform_work() operation. If it is added by TAO, then it is just proprietary extension. If you need something like that, we in MICO rather prefer as clean as possible CORBA API implemented together with command-line arguments which "tune" some behaviour. In your case, I would propose to add something like -ORBPerformWorkTimeout <number> command-line parameter. > I've hardly looked at the source, but wouldn't it be pretty easy for me > to implement it? If I recall, doesn't ORB::run() just call pselect() and > wait indefinitely? So a time-bounded ORB::perform_work() could be the > same call except with the struct timeval passed in? > > In order to contribute, do I have to make it work for win32 also?(Continue reading)
RSS Feed