forked from len0rd/rockbox
Remove card_enable_monitoring() and use a mutex instead. The card_enable_monitoring() method actually didn't eliminate the possible race conditions it was meant to fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26627 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4a2cab6aa1
commit
9c43b2ce17
12 changed files with 73 additions and 125 deletions
|
|
@ -57,17 +57,12 @@ typedef struct
|
|||
tCardInfo *card_get_info_target(int card_no);
|
||||
void sd_parse_csd(tCardInfo *card);
|
||||
|
||||
#ifdef HAVE_HOTSWAP
|
||||
#define card_enable_monitoring card_enable_monitoring_target
|
||||
#endif
|
||||
|
||||
#else /* STORAGE_MMC */
|
||||
|
||||
#include "ata_mmc.h"
|
||||
#define card_get_info mmc_card_info
|
||||
tCardInfo *mmc_card_info(int card_no);
|
||||
#define card_touched mmc_touched
|
||||
#define card_enable_monitoring mmc_enable_monitoring
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue