diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-12-26 05:59:39 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-12-26 05:59:39 +0000 |
commit | f387cdef2131b2a0956ee8e4ff7221d3251b8f46 (patch) | |
tree | 00b9226241ecb83e8c92798241bb14ebcf5b6fab /firmware/drivers | |
parent | 1d460b603fded79cb879704a4d30a50318263211 (diff) |
Make mutexes a tiny bit leaner. There is no need for a separate locked semaphore since having an owning thread also indicates that it is locked. Rename member 'count' to 'recursion' since it counts reentry, not locks. Change presents no compatibility issues for plugins or codecs because the structure size goes down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28901 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata_mmc.c b/firmware/drivers/ata_mmc.c index c27c3b5d05..dfc63021c9 100644 --- a/firmware/drivers/ata_mmc.c +++ b/firmware/drivers/ata_mmc.c @@ -760,7 +760,7 @@ int mmc_write_sectors(IF_MD2(int drive,) bool mmc_disk_is_active(void) { /* this is correct unless early return from write gets implemented */ - return mmc_mutex.locked; + return mutex_test(&mmc_mutex); } static void mmc_thread(void) |