Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
flext
Commits
1f5dcd4b
Commit
1f5dcd4b
authored
Dec 03, 2002
by
thomas
Browse files
no message
git-svn-id:
https://svn.grrrr.org/ext/trunk@410
4d9ac71a-51e6-0310-8455-cad1006bcd31
parent
4559d228
Changes
4
Show whitespace changes
Inline
Side-by-side
readme.txt
View file @
1f5dcd4b
...
...
@@ -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 *")
...
...
source/flsupport.h
View file @
1f5dcd4b
...
...
@@ -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
);
...
...
source/flthr.cpp
View file @
1f5dcd4b
...
...
@@ -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
();
...
...
source/flutil.cpp
View file @
1f5dcd4b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment