From cc889e9d608e6b07b78541849b7e63b6fb3f6058 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 5 Mar 2011 17:48:06 +0000 Subject: Change the thread api a bit. * Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler. * thread_self_entry() shortcut for kernel.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/pcm_record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/recorder/pcm_record.c') diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 8c9207f232..8a832e409c 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c @@ -897,8 +897,8 @@ static void pcmrec_flush(unsigned flush_num) priority until finished */ logf("pcmrec: boost (%s)", num >= flood_watermark ? "num" : "time"); - prio_pcmrec = thread_set_priority(THREAD_ID_CURRENT, - thread_get_priority(THREAD_ID_CURRENT) - 4); + prio_pcmrec = thread_set_priority(thread_self(), + thread_get_priority(thread_self()) - 4); prio_codec = codec_thread_set_priority( codec_thread_get_priority() - 4); } @@ -950,7 +950,7 @@ static void pcmrec_flush(unsigned flush_num) { /* return to original priorities */ logf("pcmrec: unboost priority"); - thread_set_priority(THREAD_ID_CURRENT, prio_pcmrec); + thread_set_priority(thread_self(), prio_pcmrec); codec_thread_set_priority(prio_codec); } -- cgit v1.2.3