Commit 1f5dcd4b authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@410 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 4559d228
......@@ -98,6 +98,7 @@ Version history:
- fixed crash issue in flext_dsp when there are NO signal inlets or outlets defined
(this is possibly only a problem for the signal2 tutorial example)
- added flext::GetType(t_atom &)
- added flext::ZeroMem
0.4.0:
- the use of the const keyword is enforced (e.g. the preferred type for symbols is now "const t_symbol *")
......
......@@ -121,6 +121,8 @@ public:
static t_atom *CopyList(int argc,const t_atom *argv);
//! Copy a memory region
static void CopyMem(void *dst,const void *src,int bytes);
//! Zero a memory region
static void ZeroMem(void *dst,int bytes);
//! Sleep for an amount of time
static void Sleep(float s);
......
......@@ -55,7 +55,7 @@ bool flext_base::StartThread(void *(*meth)(thr_params *p),thr_params *p,char *me
pthread_setschedparam(id,policy,&parm);
}
post("Create thread");
// post("Create thread");
pthread_t thrid;
int ret = pthread_create (&thrid,&attr,(void *(*)(void *))meth,p);
......@@ -77,7 +77,7 @@ bool flext_base::StartThread(void *(*meth)(thr_params *p),thr_params *p,char *me
#ifdef MAXMSP
sched_yield();
#endif
post("Create thread: OK");
// post("Create thread: OK");
return true;
}
......@@ -87,7 +87,7 @@ bool flext_base::PushThread()
{
tlmutex.Lock();
post("Push thread");
// post("Push thread");
// make an entry into thread list
thr_entry *nt = new thr_entry;
......@@ -138,7 +138,7 @@ void flext_base::PopThread()
{
tlmutex.Lock();
post("Pop thread");
// post("Pop thread");
pthread_t id = pthread_self();
......
......@@ -45,6 +45,11 @@ void flext::CopyMem(void *dst,const void *src,int bytes)
#endif
}
void flext::ZeroMem(void *dst,int bytes)
{
memset(dst,0,bytes);
}
void flext::Sleep(float s)
{
#ifdef NT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment