From 13ef84bc354e6cb54d59205ae0425dae43219e99 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 11 Jul 2001 02:22:17 +0000 Subject: [PATCH] Manually create the stage-2 callback structure. --- vpi/sys_display.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/vpi/sys_display.c b/vpi/sys_display.c index 0b561f41b..26d570a0b 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: sys_display.c,v 1.25 2001/06/25 03:11:41 steve Exp $" +#ident "$Id: sys_display.c,v 1.26 2001/07/11 02:22:17 steve Exp $" #endif # include "vpi_user.h" @@ -336,9 +336,14 @@ static int monitor_cb_1(p_cb_data cause) handle. I use this to reschedule the callback if needed. */ vpiHandle*cbh = (vpiHandle*) (cause->user_data); - /* Reschedule this event so that it happens for the next + /* Reschedule this event so that it happens for the next trigger on this variable. */ - cb = *cause; + time.type = vpiSuppressTime; + cb.reason = cbValueChange; + cb.cb_rtn = monitor_cb_1; + cb.time = &time; + cb.obj = cause->obj; + cb.user_data = cause->user_data; *cbh = vpi_register_cb(&cb); if (monitor_scheduled) return 0; @@ -721,6 +726,9 @@ void sys_display_register() /* * $Log: sys_display.c,v $ + * Revision 1.26 2001/07/11 02:22:17 steve + * Manually create the stage-2 callback structure. + * * Revision 1.25 2001/06/25 03:11:41 steve * More robust about incorrect arguments. *