Re: Timeout in CORBA_ORB_run ??
- From: Sreeji K Das <bksys vsnl com>
- To: orbit-list gnome org
- Subject: Re: Timeout in CORBA_ORB_run ??
- Date: Sat, 2 Sep 2000 19:28:15 +0530 (IST)
Hello all,
Forget the question. I read the other mails (work pending ..) & it works
fine for me.
ie. this works:
while (true)
{
Task1;
Task2;
$orb->perform_work if ($orb->work_pending);
}
Thanx Darrin.
Sreeji
On Sat, 2 Sep 2000, Sreeji K Das wrote:
> Hi
>
> I'd like to CORBA enable an application of mine, which currently does
> something like:
>
> while (true)
> {
> Task1;
> Task2;
> }
>
> Now, I cannot use CORBA_ORB_run as it is, since it would block
> forever. Can I do something like:
>
> long timeout_secs;
> timeout_secs = 1;
> while (true)
> {
> ...
> Task1;
> Task2;
> CORBA_ORB_run(orb, &ev, timeout_secs);
> }
>
> I know that it's not possible as per the current implementation. Can some1
> point me what else is the approach I should make ? I went through the mail
> archives w/o much luck. I saw in one place I should use IIOP (add/remove)
> ConnectionHandler. Could some1 give me some code samples ?? I guess it
> would benefit many if such an example is checked-in to test/
>
> Thanx
>
> Sreeji
>
>
> _________________________________________________________
>
> It said Windows 95 or better, so I used Linux !
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]