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 );
|
||||
}
|
||||
|
||||
/* 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 );
|
||||
|
||||
Reference in New Issue
Block a user