[PD-cvs] externals/grill/vasp/source buflib.cpp,1.10,1.11
Thomas Grill
xovo at users.sourceforge.net
Mon Jun 21 16:01:25 CEST 2004
- Previous message: [PD-cvs] externals/grill/flext/source flatom_app.cpp,1.2,1.3 flatom_part.cpp,1.2,1.3 flatom_pr.cpp,1.17,1.18 flattr_ed.cpp,1.20,1.21 flbase.cpp,1.16,1.17 flbase.h,1.25,1.26 flbind.cpp,1.13,1.14 flbuf.cpp,1.17,1.18 flcwmax-thr.h,1.5,1.6 flcwmax-x-thr.h,1.5,1.6 flcwmax.h,1.7,1.8 flcwpd-x-thr.h,1.3,1.4 flcwpd-x.h,1.4,1.5 fldefs.h,1.17,1.18 fldefs_attradd.h,1.2,1.3 fldefs_attrcb.h,1.3,1.4 fldefs_attrvar.h,1.4,1.5 fldefs_methadd.h,1.2,1.3 fldefs_methcall.h,1.2,1.3 fldefs_methcb.h,1.2,1.3 fldefs_setup.h,1.3,1.4 fldoxygen.h,1.8,1.9 fldsp.cpp,1.20,1.21 flext.cpp,1.27,1.28 flext.h,1.20,1.21 flinternal.h,1.8,1.9 flitem.cpp,1.11,1.12 fllib.cpp,1.24,1.25 flmeth.cpp,1.9,1.10 flmsg.cpp,1.11,1.12 flmspbuffer.h,1.3,1.4 flout.cpp,1.15,1.16 flprefix.h,1.27,1.28 flproxy.cpp,1.6,1.7 flqueue.cpp,1.15,1.16 flsimd.cpp,1.12,1.13 flsndobj.cpp,1.6,1.7 flsndobj.h,1.6,1.7 flstdc.h,1.22,1.23 flstk.cpp,1.4,1.5 flstk.h,1.5,1.6 flsupport.h,1.68,1.69 fltimer.cpp,1.4,1.5 flutil.cpp,1.14,1.15 flxlet.cpp,1.5,1.6
- Next message: [PD-cvs] externals/grill/xsample readme.txt,1.19,1.20 xsample.cw,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/externals/grill/vasp/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24297/source
Modified Files:
buflib.cpp
Log Message:
""
Index: buflib.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/vasp/source/buflib.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** buflib.cpp 10 Nov 2003 03:37:03 -0000 1.10
--- buflib.cpp 21 Jun 2004 14:01:12 -0000 1.11
***************
*** 61,65 ****
#ifdef FLEXT_THREADS
! static flext::ThrMutex libmtx;
#endif
--- 61,65 ----
#ifdef FLEXT_THREADS
! static flext::ThrMutex libmtx,freemtx;
#endif
***************
*** 74,78 ****
refcnt(0),nxt(NULL)
{
! data = (S *)NewAligned(fr*sizeof(S));
if(zero) flext::ZeroMem(data,len*sizeof(*data));
}
--- 74,78 ----
refcnt(0),nxt(NULL)
{
! data = (S *)NewAligned(len*sizeof(*data));
if(zero) flext::ZeroMem(data,len*sizeof(*data));
}
***************
*** 198,201 ****
--- 198,206 ----
static const t_symbol *GetLibSym()
{
+ #ifdef FLEXT_THREADS
+ freemtx.Lock();
+ #endif
+ const t_symbol *ret;
+
if(freehead) {
// reuse from free-list
***************
*** 205,209 ****
const t_symbol *s = r->sym;
delete r;
! return s;
}
else {
--- 210,214 ----
const t_symbol *s = r->sym;
delete r;
! ret = s;
}
else {
***************
*** 215,220 ****
STD::sprintf(tmp,"vasp!%04x",libcnt);
libcnt++;
! return gensym(tmp);
}
}
--- 220,230 ----
STD::sprintf(tmp,"vasp!%04x",libcnt);
libcnt++;
! ret = gensym(tmp);
}
+
+ #ifdef FLEXT_THREADS
+ freemtx.Unlock();
+ #endif
+ return ret;
}
***************
*** 225,232 ****
--- 235,250 ----
#endif
+ #ifdef FLEXT_THREADS
+ freemtx.Lock();
+ #endif
+
FreeEntry *f = new FreeEntry(sym);
if(!freehead) freehead = f;
else freetail->nxt = f;
freetail = f;
+
+ #ifdef FLEXT_THREADS
+ freemtx.Unlock();
+ #endif
}
- Previous message: [PD-cvs] externals/grill/flext/source flatom_app.cpp,1.2,1.3 flatom_part.cpp,1.2,1.3 flatom_pr.cpp,1.17,1.18 flattr_ed.cpp,1.20,1.21 flbase.cpp,1.16,1.17 flbase.h,1.25,1.26 flbind.cpp,1.13,1.14 flbuf.cpp,1.17,1.18 flcwmax-thr.h,1.5,1.6 flcwmax-x-thr.h,1.5,1.6 flcwmax.h,1.7,1.8 flcwpd-x-thr.h,1.3,1.4 flcwpd-x.h,1.4,1.5 fldefs.h,1.17,1.18 fldefs_attradd.h,1.2,1.3 fldefs_attrcb.h,1.3,1.4 fldefs_attrvar.h,1.4,1.5 fldefs_methadd.h,1.2,1.3 fldefs_methcall.h,1.2,1.3 fldefs_methcb.h,1.2,1.3 fldefs_setup.h,1.3,1.4 fldoxygen.h,1.8,1.9 fldsp.cpp,1.20,1.21 flext.cpp,1.27,1.28 flext.h,1.20,1.21 flinternal.h,1.8,1.9 flitem.cpp,1.11,1.12 fllib.cpp,1.24,1.25 flmeth.cpp,1.9,1.10 flmsg.cpp,1.11,1.12 flmspbuffer.h,1.3,1.4 flout.cpp,1.15,1.16 flprefix.h,1.27,1.28 flproxy.cpp,1.6,1.7 flqueue.cpp,1.15,1.16 flsimd.cpp,1.12,1.13 flsndobj.cpp,1.6,1.7 flsndobj.h,1.6,1.7 flstdc.h,1.22,1.23 flstk.cpp,1.4,1.5 flstk.h,1.5,1.6 flsupport.h,1.68,1.69 fltimer.cpp,1.4,1.5 flutil.cpp,1.14,1.15 flxlet.cpp,1.5,1.6
- Next message: [PD-cvs] externals/grill/xsample readme.txt,1.19,1.20 xsample.cw,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list