Create queue stuff before the thread that will use it

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15328 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2007-10-27 04:19:17 +00:00
parent 14b6f437bb
commit 2c1e8283aa

View file

@ -1195,13 +1195,13 @@ void buffering_init(void) {
conf_filechunk = BUFFERING_DEFAULT_FILECHUNK;
conf_watermark = BUFFERING_DEFAULT_WATERMARK;
queue_init(&buffering_queue, true);
queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list);
buffering_thread_p = create_thread( buffering_thread, buffering_stack,
sizeof(buffering_stack), 0,
buffering_thread_name IF_PRIO(, PRIORITY_BUFFERING)
IF_COP(, CPU));
queue_init(&buffering_queue, true);
queue_enable_queue_send(&buffering_queue, &buffering_queue_sender_list);
}
/* Initialise the buffering subsystem */