Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22631
Modified Files: Tag: devel_0_39 g_array.c g_canvas.h Log Message: adding garray_updatetime again
Index: g_array.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_array.c,v retrieving revision 1.3.4.4.2.2 retrieving revision 1.3.4.4.2.3 diff -C2 -d -r1.3.4.4.2.2 -r1.3.4.4.2.3 *** g_array.c 12 Jul 2005 15:11:07 -0000 1.3.4.4.2.2 --- g_array.c 12 Aug 2005 10:03:41 -0000 1.3.4.4.2.3 *************** *** 222,225 **** --- 222,231 ---- }
+ static void garray_update(t_garray *x) + { + x->x_lastupdate = clock_getlogicaltime(); + } + + /* get the "array" structure and furthermore check it's float */ static t_array *garray_getarray_floatonly(t_garray *x, *************** *** 1051,1054 **** --- 1057,1066 ---- garray_vis(&x->x_gobj, x->x_glist, 1); } + garray_update(x); + } + + double garray_updatetime(t_garray *x) + { + return x->x_lastupdate; }
Index: g_canvas.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_canvas.h,v retrieving revision 1.3.4.3.2.2 retrieving revision 1.3.4.3.2.3 diff -C2 -d -r1.3.4.3.2.2 -r1.3.4.3.2.3 *** g_canvas.h 12 Jul 2005 15:11:07 -0000 1.3.4.3.2.2 --- g_canvas.h 12 Aug 2005 10:03:41 -0000 1.3.4.3.2.3 *************** *** 226,235 **** t_gpointer a_gp; /* pointer to scalar or array element we're in */ t_gstub *a_stub; /* stub for pointing into this array */ - double a_lastupdate; /* T.Grill - clock_getlogicaltime() of last array update */ };
- - - struct _garray { --- 226,231 ---- *************** *** 242,248 **** char x_saveit; /* true if we should save this with parent */ char x_listviewing; /* true if list view window is open */ ! #ifdef GARRAY_THREAD_LOCK ! pthread_mutex_t * x_mutex; /* TB: mutex */ ! #endif };
--- 238,242 ---- char x_saveit; /* true if we should save this with parent */ char x_listviewing; /* true if list view window is open */ ! double x_lastupdate; /* T.Grill - clock_getlogicaltime() of last array update */ };