Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4554/source
Modified Files: flqueue.cpp Log Message: Max: use high-priority click instead of qelem for message-posting fixed buggy unbinding of receive symbols added method for clicks into object box
Index: flqueue.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flqueue.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** flqueue.cpp 28 Jan 2005 04:57:18 -0000 1.26 --- flqueue.cpp 8 Feb 2005 04:56:22 -0000 1.27 *************** *** 59,63 **** };
! /* \TODO This is only thread-safe if called fro one thread which need NOT be the case. Reimplement in a thread-safe manner!!! */ --- 59,63 ---- };
! /* \TODO This is only thread-safe if called from one thread which need NOT be the case. Reimplement in a thread-safe manner!!! */ *************** *** 177,191 **** t_atom *GetAtoms(int argc) { if(atail+argc >= QUEUE_ATOMS) { FLEXT_ASSERT(ahead > argc); atail = argc; - return atoms; } else { FLEXT_ASSERT(ahead <= atail || ahead > atail+argc); ! t_atom *at = atoms+atail; atail += argc; - return at; } }
--- 177,192 ---- t_atom *GetAtoms(int argc) { + t_atom *ret; if(atail+argc >= QUEUE_ATOMS) { FLEXT_ASSERT(ahead > argc); + ret = atoms; atail = argc; } else { FLEXT_ASSERT(ahead <= atail || ahead > atail+argc); ! ret = atoms+atail; atail += argc; } + return ret; }