aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2005-06-09 12:48:20 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:59 +0200
commit5fda6973fd8d94872a61d99d264ee5902824139d (patch)
tree357d5ebbad5d4b57c4c5ab3e6ed51afe97f379a4
parent0a333caec5eb5ed2a97d4d1b5fbde37724280fdc (diff)
adapted for updated fifo implementation
svn path=/trunk/externals/tb/; revision=3144
-rw-r--r--detach/detach.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/detach/detach.c b/detach/detach.c
index 6460f6b..661e073 100644
--- a/detach/detach.c
+++ b/detach/detach.c
@@ -45,6 +45,7 @@ typedef struct _detach
typedef struct _detach_content
{
+ struct _detach_content_t * next;
enum { BANG,
POINTER,
FLOAT,
@@ -54,6 +55,7 @@ typedef struct _detach_content
CANCEL} type;
int argc;
t_atom * argv;
+ t_symbol * symbol;
} detach_content_t;
@@ -85,7 +87,7 @@ static void detach_thread(detach_t* x)
freebytes(me->argv, me->argc * sizeof(t_atom));
break;
case ANYTHING:
- outlet_anything(x->x_outlet, 0, me->argc, me->argv);
+ outlet_anything(x->x_outlet, me->symbol, me->argc, me->argv);
freebytes(me->argv, me->argc * sizeof(t_atom));
break;
case CANCEL:
@@ -232,6 +234,7 @@ static void detach_anything(detach_t * x, t_symbol * s,
me->type = ANYTHING;
me->argc = argc;
me->argv = copybytes(argv, argc * sizeof(t_atom));
+ me->symbol = s;
fifo_put(x->x_fifo, me);
pthread_cond_broadcast(&x->x_cond);