Kaydet (Commit) 59e7685d authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

Create an abstract interface to be used to implement a SolarMutex

üst 38ce15ce
......@@ -247,6 +247,29 @@ namespace osl
typedef Guard<Mutex> MutexGuard;
typedef ClearableGuard<Mutex> ClearableMutexGuard;
typedef ResettableGuard< Mutex > ResettableMutexGuard;
/** SolarMutex interface, needed for SolarMutex.
Deprecated, used just for Application::GetSolarMutex().
*/
class SolarMutex
{
public:
/** Blocks if mutex is already in use
*/
virtual void SAL_CALL acquire() = 0;
/** Tries to get the mutex without blocking.
*/
virtual sal_Bool SAL_CALL tryToAcquire() = 0;
/** Releases the mutex.
*/
virtual void SAL_CALL release() = 0;
protected:
SolarMutex() {}
virtual ~SolarMutex() {}
};
}
#endif /* __cplusplus */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment