[Ace-users] Re: [tao-users] help , use CORBA interface control other process

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Thu Jul 12 02:10:41 CDT 2007


Hi,

        Please use the PRF when you ask any questions..

> Is there a function I can insert after sleep ,let orb reponse to client's SetTaskStatus call?
> 
> now the Task is always in the loop,and client get no response.
> 
> Is the only solution is mulit-thread?

You could also call the ORB's work_pending() and perform_work()
operations when you return from the sleep().

Take care,

     Doug


> ----- Original Message -----
> From: "Douglas C. Schmidt" <schmidt at dre.vanderbilt.edu>
> To: "roland" <rolandsun at gmail.com>
> Cc: <tao-users at cse.wustl.edu>
> Sent: Thursday, July 12, 2007 2:30 PM
> Subject: Re: [tao-users] help ,use CORBA interface control other process 
> 
> 
> > 
> > Hi,
> > 
> > To ensure that we have proper version/platform/compiler information,
> > please make sure you fill out the appropriate problem report form (PRF),
> > which is in
> > 
> > $ACE_ROOT/PROBLEM-REPORT-FORM
> > $TAO_ROOT/PROBLEM-REPORT-FORM
> > 
> > or in
> > 
> > $ACE_ROOT/BUG-REPORT-FORM
> > $TAO_ROOT/BUG-REPORT-FORM
> > 
> > in older versions of ACE+TAO.  Make sure to include this information
> > when asking any questions about ACE+TAO since otherwise we have to
> > "guess" what version/platform/compiler/options you've using, which is
> > very error-prone and slows down our responsiveness.  If you don't use
> > the PRF, therefore, it is less likely that someone from the core
> > ACE+TAO developer team will be able to answer your question.
> > Naturally, we encourage and appreciate other members of the ACE+TAO
> > user community who can respond to questions that they have the answers
> > to.
> > 
> >> I have a program named AlgorithmTask ,it has CORBA interface to let client control it runing .
> >> if user let it pause,it do nothing ,when use let it resume ,it resume data process .
> >>  
> >>  now when the task recevie  pause cmd,I let it sleep.
> >>  the problem is ,it will all always sleep in the loop, can not recv the resume cmd anymore.
> >> anyone can help me ?
> > 
> > There are all sorts of ways  to fix this, e.g., only sleep for short
> > period of time and then wake up and check a flat to see if the code has
> > been resumed.  Likewise, you will need to use a multi-threaded server
> > configuration so there's a thread to handle the resume command.  Please see
> > 
> > TAO_ROOT/docs/configurations.html
> > 
> > for info on how to do this.
> > 
> > Thanks,
> > 
> > Doug
> > 
> >> pesuo code as following
> >> 
> >> while(1)
> >> {
> >>  if(task_status==PAUSED)
> >>  {
> >>       ACE_OS::sleep();
> >>       continue;
> >>  }
> >>  data_process();
> >>  
> >> }
> >> 
> >> _______________________________________________
> >> tao-users mailing list
> >> tao-users at mail.cse.wustl.edu
> >> http://mail.cse.wustl.edu/mailman/listinfo/tao-users



More information about the Ace-users mailing list