1
0
Fork 0
forked from len0rd/rockbox

Use boolean instead of int for keeping track of mutex signalled state and wakeup signalled state

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25671 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-04-18 15:24:39 +00:00
parent 44454c3203
commit c493a1e39d
2 changed files with 11 additions and 11 deletions

View file

@ -150,7 +150,7 @@ struct mutex
struct thread_entry *thread;
#endif
IF_COP( struct corelock cl; ) /* multiprocessor sync */
unsigned char locked; /* locked semaphore */
bool locked; /* locked semaphore */
};
#ifdef HAVE_SEMAPHORE_OBJECTS
@ -167,7 +167,7 @@ struct semaphore
struct wakeup
{
struct thread_entry *queue; /* waiter list */
unsigned char signalled; /* signalled status */
bool signalled; /* signalled status */
IF_COP( struct corelock cl; ) /* multiprocessor sync */
};
#endif