(svn r27775) -Fix [FS#6510]: Insufficient thread synchronisation when switching blitters. (JGR)

This commit is contained in:
frosch
2017-03-11 13:05:54 +00:00
parent d5f82bf55b
commit b1fe837b8e
6 changed files with 47 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ public:
/**
* Callback invoked after the blitter was changed.
* This may only be called between AcquireBlitterLock and ReleaseBlitterLock.
* @return True if no error.
*/
virtual bool AfterBlitterChange()
@@ -56,6 +57,18 @@ public:
return true;
}
/**
* Acquire any lock(s) required to be held when changing blitters.
* These lock(s) may not be acquired recursively.
*/
virtual void AcquireBlitterLock() { }
/**
* Release any lock(s) required to be held when changing blitters.
* These lock(s) may not be acquired recursively.
*/
virtual void ReleaseBlitterLock() { }
virtual bool ClaimMousePointer()
{
return true;