summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index dfc90065d6..6160869498 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -184,7 +184,7 @@ enum {
184static void buffering_thread(void); 184static void buffering_thread(void);
185static long buffering_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)]; 185static long buffering_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)];
186static const char buffering_thread_name[] = "buffering"; 186static const char buffering_thread_name[] = "buffering";
187static struct thread_entry *buffering_thread_p; 187static unsigned int buffering_thread_id = 0;
188static struct event_queue buffering_queue; 188static struct event_queue buffering_queue;
189static struct queue_sender_list buffering_queue_sender_list; 189static struct queue_sender_list buffering_queue_sender_list;
190 190
@@ -1468,13 +1468,13 @@ void buffering_init(void)
1468 conf_watermark = BUFFERING_DEFAULT_WATERMARK; 1468 conf_watermark = BUFFERING_DEFAULT_WATERMARK;
1469 1469
1470 queue_init(&buffering_queue, true); 1470 queue_init(&buffering_queue, true);
1471 buffering_thread_p = create_thread( buffering_thread, buffering_stack, 1471 buffering_thread_id = create_thread( buffering_thread, buffering_stack,
1472 sizeof(buffering_stack), CREATE_THREAD_FROZEN, 1472 sizeof(buffering_stack), CREATE_THREAD_FROZEN,
1473 buffering_thread_name IF_PRIO(, PRIORITY_BUFFERING) 1473 buffering_thread_name IF_PRIO(, PRIORITY_BUFFERING)
1474 IF_COP(, CPU)); 1474 IF_COP(, CPU));
1475 1475
1476 queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list, 1476 queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list,
1477 buffering_thread_p); 1477 buffering_thread_id);
1478} 1478}
1479 1479
1480/* Initialise the buffering subsystem */ 1480/* Initialise the buffering subsystem */
@@ -1501,7 +1501,7 @@ bool buffering_reset(char *buf, size_t buflen)
1501 high_watermark = 3*buflen / 4; 1501 high_watermark = 3*buflen / 4;
1502#endif 1502#endif
1503 1503
1504 thread_thaw(buffering_thread_p); 1504 thread_thaw(buffering_thread_id);
1505 1505
1506 return true; 1506 return true;
1507} 1507}