I can't remember any rationale for "UnmountCard should never block",
and it does block: umounting a filesystem in Linux will block until it's flushed.
This commit is contained in:
@@ -613,8 +613,8 @@ bool MemoryCardManager::MountCard( PlayerNumber pn, const UsbStorageDevice &d )
|
|||||||
return MountCard( pn );
|
return MountCard( pn );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called in EndGame just after writing the profile. Called by PlayersFinalized just after
|
/* Called when finished accessing a memory card. If writes have been performed,
|
||||||
* reading the profile. Should never block; use FlushAndReset to block until writes complete. */
|
* will block until flushed. */
|
||||||
void MemoryCardManager::UnmountCard( PlayerNumber pn )
|
void MemoryCardManager::UnmountCard( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
LOG->Trace( "MemoryCardManager::UnmountCard(%i)", pn );
|
LOG->Trace( "MemoryCardManager::UnmountCard(%i)", pn );
|
||||||
|
|||||||
Reference in New Issue
Block a user