diff options
author | Andras Timar <andras.timar@collabora.com> | 2018-11-06 11:28:52 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-11-06 14:31:44 +0100 |
commit | d186ed09bcabe36f70e8a58b4f0b1c05c3c72218 (patch) | |
tree | 9dd5227bf638e2fba37d4d070160223d470f386b /include | |
parent | 4d9dda3fd096b9bffba5a07243a86208affd893f (diff) |
replace Application::GetMainThreadIdentifier to Application::IsMainThread
Change-Id: I2b9ea77b48673af3575a3142feea5bed84f75d74
Reviewed-on: https://gerrit.libreoffice.org/62950
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/svapp.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index b1e9eb7c9a45..664f8ba8d56a 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -456,14 +456,14 @@ public: /** Run the main event processing loop until it is quit by Quit(). @see Quit, Reschedule, Yield, EndYield, GetSolarMutex, - GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + IsMainThread, ReleaseSolarMutex, AcquireSolarMutex, */ static void Execute(); /** Quit the program @see Execute, Reschedule, Yield, EndYield, GetSolarMutex, - GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + IsMainThread, ReleaseSolarMutex, AcquireSolarMutex, */ static void Quit(); @@ -490,14 +490,14 @@ public: if an event was processed. @see Execute, Quit, Reschedule, EndYield, GetSolarMutex, - GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + IsMainThread, ReleaseSolarMutex, AcquireSolarMutex, */ static void Yield(); /** @see Execute, Quit, Reschedule, Yield, GetSolarMutex, - GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + IsMainThread, ReleaseSolarMutex, AcquireSolarMutex, */ static void EndYield(); @@ -509,18 +509,18 @@ public: @returns SolarMutex reference @see Execute, Quit, Reschedule, Yield, EndYield, - GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, + IsMainThread, ReleaseSolarMutex, AcquireSolarMutex, */ static comphelper::SolarMutex& GetSolarMutex(); - /** Get the main thread ID. + /** Queries whether we are in main thread. - @returns oslThreadIdentifier that contains the thread ID + @returns true if we are in main thread, false if not @see Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, ReleaseSolarMutex, AcquireSolarMutex, */ - static oslThreadIdentifier GetMainThreadIdentifier(); + static bool IsMainThread(); /** @brief Release Solar Mutex(es) for this thread @@ -530,7 +530,7 @@ public: @returns The number of mutexes that were acquired by this thread. @see Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, - GetMainThreadIdentifier, AcquireSolarMutex, + IsMainThread, AcquireSolarMutex, */ static sal_uInt32 ReleaseSolarMutex(); @@ -540,7 +540,7 @@ public: VCL concurrently. @see Execute, Quit, Reschedule, Yield, EndYield, GetSolarMutex, - GetMainThreadIdentifier, ReleaseSolarMutex, + IsMainThread, ReleaseSolarMutex, */ static void AcquireSolarMutex( sal_uInt32 nCount ); |