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:
Glenn Maynard
2005-12-21 05:46:01 +00:00
parent 5efc86a81a
commit f1498f38f0
+2 -2
View File
@@ -613,8 +613,8 @@ bool MemoryCardManager::MountCard( PlayerNumber pn, const UsbStorageDevice &d )
return MountCard( pn );
}
/* Called in EndGame just after writing the profile. Called by PlayersFinalized just after
* reading the profile. Should never block; use FlushAndReset to block until writes complete. */
/* Called when finished accessing a memory card. If writes have been performed,
* will block until flushed. */
void MemoryCardManager::UnmountCard( PlayerNumber pn )
{
LOG->Trace( "MemoryCardManager::UnmountCard(%i)", pn );