Per,
We've seen applications that do this so I believe it should
be allowed. However, generally it is not good practice since those
callbacks might have to know how to handle transactions other than
the ones their waiting for - which makes things more complex.
Callbacks should do quick data updates and get out. ::ServiceLoop()
should generally be called from a central dispatcher loop. On
multi-threaded HVLs it should have its own thread.
-- johnS
Bojsen, Per wrote:
> Hi,
>
> this should be an easy one. Is (indirect) ServiceLoop() recursion
> allowed? That is, is it allowed to call ServiceLoop() from a user
> callback (g(), IsReady(), Receive())? The answer to this question
> impacts the implementation of ServiceLoop().
>
> Thanks,
> Per
>
> --
> Per Bojsen Email: <bojsen@zaiqtech.com>
> Zaiq Technologies, Inc. WWW: http://www.zaiqtech.com
> 78 Dragon Ct. Tel: 781 721 8229
> Woburn, MA 01801 Fax: 781 932 7488
>
-- This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission /\ is strictly prohibited. If you are /\ | \ not the intended recipient please | \ / | contact the sender and delete / \ \ all copies. /\_/ K2 \_ \_ ______________________________/\/ \ \ John Stickley \ \ \ Principal Engineer \ \________________ Mentor Graphics - MED \_ 17 E. Cedar Place \ john_stickley@mentor.com Ramsey, NJ 07446 \ Phone: (201) 818-2585 ________________________________________________________________Received on Wed Mar 24 07:00:59 2004
This archive was generated by hypermail 2.1.8 : Wed Mar 24 2004 - 07:01:00 PST