1*3a700b0aSSteve Yin /************************************************************** 25fdc4257SSteve Yin * 3*3a700b0aSSteve Yin * Licensed to the Apache Software Foundation (ASF) under one 4*3a700b0aSSteve Yin * or more contributor license agreements. See the NOTICE file 5*3a700b0aSSteve Yin * distributed with this work for additional information 6*3a700b0aSSteve Yin * regarding copyright ownership. The ASF licenses this file 7*3a700b0aSSteve Yin * to you under the Apache License, Version 2.0 (the 8*3a700b0aSSteve Yin * "License"); you may not use this file except in compliance 9*3a700b0aSSteve Yin * with the License. You may obtain a copy of the License at 105fdc4257SSteve Yin * 11*3a700b0aSSteve Yin * http://www.apache.org/licenses/LICENSE-2.0 125fdc4257SSteve Yin * 13*3a700b0aSSteve Yin * Unless required by applicable law or agreed to in writing, 14*3a700b0aSSteve Yin * software distributed under the License is distributed on an 15*3a700b0aSSteve Yin * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3a700b0aSSteve Yin * KIND, either express or implied. See the License for the 17*3a700b0aSSteve Yin * specific language governing permissions and limitations 18*3a700b0aSSteve Yin * under the License. 195fdc4257SSteve Yin * 20*3a700b0aSSteve Yin *************************************************************/ 215fdc4257SSteve Yin 225fdc4257SSteve Yin #include "checkmt.hxx" 235fdc4257SSteve Yin #include <vcl/svapp.hxx> 245fdc4257SSteve Yin IsInMainThread()255fdc4257SSteve Yinbool IsInMainThread() 265fdc4257SSteve Yin { 275fdc4257SSteve Yin if( Application::GetMainThreadIdentifier() == ::vos::OThread::getCurrentIdentifier()) 285fdc4257SSteve Yin return true; 295fdc4257SSteve Yin else 305fdc4257SSteve Yin return false; 315fdc4257SSteve Yin } 325fdc4257SSteve Yin GetSolarMutex()335fdc4257SSteve Yinvos::IMutex& GetSolarMutex() 345fdc4257SSteve Yin { 355fdc4257SSteve Yin return Application::GetSolarMutex(); 365fdc4257SSteve Yin } 37