mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Convert macro to inline function and move it into .c file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d9af87c40b
commit
c31fdeffdc
2 changed files with 29 additions and 15 deletions
|
@ -137,14 +137,6 @@ struct event_queue
|
|||
IF_COP( struct corelock cl; ) /* multiprocessor sync */
|
||||
};
|
||||
|
||||
#ifdef HAVE_PRIORITY_SCHEDULING
|
||||
#define MUTEX_SET_THREAD(m, t) ((m)->blocker.thread = (t))
|
||||
#define MUTEX_GET_THREAD(m) ((m)->blocker.thread)
|
||||
#else
|
||||
#define MUTEX_SET_THREAD(m, t) ((m)->thread = (t))
|
||||
#define MUTEX_GET_THREAD(m) ((m)->thread)
|
||||
#endif
|
||||
|
||||
struct mutex
|
||||
{
|
||||
struct thread_entry *queue; /* waiter list */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue